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
700 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
2018-03-26 07:34:12 +02:00
ifeq (${PLATFORM}, win32)
ICON = --icon=./build/icons/icon.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-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