-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (30 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
MAKEFLAGS += --silent
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
export APP_MIN_HEIGHT=600
.PHONY: default
default: install build
.PHONY: install
install:
echo "Downloading dependencies"
docker pull ${BUILD_IMAGE}
.PHONY: clean
clean:
echo "Cleaning previous builds"
rm -Rf ${OSX_BUILD_DIR} ${LINUX_BUILD_DIR}
.PHONY: build
build: clean build_osx build_linux
echo "Finished"
.PHONY: build_osx
build_osx:
echo "Building for macOS"
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:
echo "Building for 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/