mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-02 18:36:56 +01:00
refs #78 Create makefile for production release
This commit is contained in:
parent
c44dc1f159
commit
94e424f685
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,5 +8,6 @@ node_modules/
|
||||
npm-debug.log
|
||||
npm-debug.log.*
|
||||
thumbs.db
|
||||
packages/*
|
||||
!.gitkeep
|
||||
*.db
|
||||
|
17
Makefile
Normal file
17
Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
.PHONY: release-build package
|
||||
VERSION = 0.0.0
|
||||
PLATFORM = linux
|
||||
|
||||
ICON = ""
|
||||
ifeq (${PLATFORM}, darwin)
|
||||
ICON = "--icon=./build/icons/whalebird.icns"
|
||||
endif
|
||||
ifeq (${PLATFORM}, windows)
|
||||
ICON = "--icon=./build/icons/whalebird.ico"
|
||||
endif
|
||||
|
||||
all: release-build package
|
||||
release-build: package.json
|
||||
npm run pack
|
||||
package: release-build
|
||||
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}
|
0
packages/.gitkeep
Normal file
0
packages/.gitkeep
Normal file
@ -161,7 +161,8 @@ function createWindow () {
|
||||
mainWindow = new BrowserWindow({
|
||||
height: 563,
|
||||
useContentSize: true,
|
||||
width: 1000
|
||||
width: 1000,
|
||||
icon: require('path').join(__dirname, '../../build/icons/256x256.png')
|
||||
})
|
||||
|
||||
mainWindow.loadURL(winURL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user