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-26 11:25:44 +02:00
|
|
|
ICON = --icon=./build/icons/icon.icns
|
2018-03-22 08:49:39 +01:00
|
|
|
CERT = --sign='${CERTNAME}'
|
2018-03-22 06:50:19 +01:00
|
|
|
endif
|
2018-03-26 07:34:12 +02:00
|
|
|
ifeq (${PLATFORM}, win32)
|
|
|
|
ICON = --icon=./build/icons/icon.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-26 07:34:12 +02: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" --ignore="^/.git" --prune=true $(ICON) $(CERT) --overwrite
|