2018-03-22 08:49:39 +01:00
|
|
|
.PHONY: install release-build package
|
2018-03-22 06:50:19 +01:00
|
|
|
VERSION = 0.0.0
|
|
|
|
PLATFORM = linux
|
2018-03-22 08:49:39 +01:00
|
|
|
CERTNAME = ""
|
2018-03-22 06:50:19 +01:00
|
|
|
|
|
|
|
ICON = ""
|
2018-03-22 08:49:39 +01:00
|
|
|
CERT = ""
|
2018-03-22 06:50:19 +01:00
|
|
|
ifeq (${PLATFORM}, darwin)
|
2018-03-22 08:49:39 +01:00
|
|
|
ICON = --icon=./build/icons/whalebird.icns
|
|
|
|
CERT = --sign='${CERTNAME}'
|
2018-03-22 06:50:19 +01:00
|
|
|
endif
|
|
|
|
ifeq (${PLATFORM}, windows)
|
2018-03-22 08:49:39 +01:00
|
|
|
ICON = --icon=./build/icons/whalebird.ico
|
2018-03-22 06:50:19 +01:00
|
|
|
endif
|
|
|
|
|
2018-03-22 08:49:39 +01:00
|
|
|
all: install release-build package
|
|
|
|
install: package.json
|
|
|
|
npm install
|
2018-03-22 06:50:19 +01:00
|
|
|
release-build: package.json
|
|
|
|
npm run pack
|
|
|
|
package: release-build
|
2018-03-22 08:49:39 +01:00
|
|
|
electron-packager ./ whalebird --platform=${PLATFORM} --arch=x64 --electron-version=1.8.3 --build-version=${VERSION} --asar --out=packages --ignore="^/src" --ignore="^/test" --ignore="^/.electron-vue" --ignore="^/.envrc" --prune=true $(ICON) $(CERT)
|