1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-14 09:46:24 +01:00
Whalebird-desktop-client-ma.../Makefile

23 lines
689 B
Makefile
Raw Normal View History

2018-03-22 08:49:39 +01:00
.PHONY: install release-build package
VERSION = 0.0.0
PLATFORM = linux
2018-03-22 08:49:39 +01:00
CERTNAME = ""
ICON = ""
2018-03-22 08:49:39 +01:00
CERT = ""
ifeq (${PLATFORM}, darwin)
2018-03-22 08:49:39 +01:00
ICON = --icon=./build/icons/whalebird.icns
CERT = --sign='${CERTNAME}'
endif
ifeq (${PLATFORM}, windows)
2018-03-22 08:49:39 +01:00
ICON = --icon=./build/icons/whalebird.ico
endif
2018-03-22 08:49:39 +01:00
all: install release-build package
install: package.json
npm install
release-build: package.json
npm run pack
package: release-build
2018-03-22 10:33:31 +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) --overwrite