Skip to content

Commit

Permalink
feature: Add linux build and pipeline command
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloboeira committed Aug 23, 2017
1 parent bb53a91 commit 73cf11d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export BUILD_IMAGE=toschneck/nativefier
export BUILD_DIR=${PWD}/build
export OSX_BUILD_DIR=${BUILD_DIR}/osx
export LINUX_BUILD_DIR=${BUILD_DIR}/linux
export APP_NAME=Feedcast
export APP_URL=https://feedcast.io
export APP_MIN_WIDTH=800
Expand All @@ -10,6 +11,13 @@ export APP_MIN_HEIGHT=600
install:
docker pull ${BUILD_IMAGE}

.PHONY: build
build: build_osx build_linux

.PHONY: build_osx
build_osx:
docker run -v ${OSX_BUILD_DIR}/:/build ${BUILD_IMAGE} -p osx --name ${APP_NAME} -f --min-width ${APP_MIN_WIDTH} --min-height ${APP_MIN_HEIGHT} --disable-context-menu --disable-dev-tools --single-instance ${APP_URL} build/

.PHONY: build_linux
build_linux:
docker run -v ${LINUX_BUILD_DIR}/:/build ${BUILD_IMAGE} -p linux --name ${APP_NAME} -f --min-width ${APP_MIN_WIDTH} --min-height ${APP_MIN_HEIGHT} --disable-context-menu --disable-dev-tools --single-instance ${APP_URL} build/
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Desktop
> The Podcast Desktop Native Player
## Showtime
## Setup
> Downloads the docker image
To install the dependencies run: `make install`
To build the OSX applicaiton run: `make build_osx`

## Build
> Generates the applications for each platform
To build for all the platforms use: `make build`

To build the OSX application run: `make build_osx`

To build the Linux application run: `make build_linux`

0 comments on commit 73cf11d

Please sign in to comment.