Merge pull request #818 from h3poteto/makefile

Add Makefile to build release files
This commit is contained in:
AkiraFukushima 2019-01-05 22:54:47 +09:00 committed by GitHub
commit 656015c387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 2 deletions

25
Makefile Normal file
View File

@ -0,0 +1,25 @@
.PHONY: all install clean
VERSION = 1.0.0
all: install mac linux windows
install: package.json
npm install
mac:
npm run build:mac
mv build/Whalebird-${VERSION}-mac.dmg build/Whalebird-${VERSION}-darwin-x64.dmg
linux:
npm run build:linux
mv build/Whalebird-${VERSION}-linux.deb build/Whalebird-${VERSION}-linux-x64.deb
mv build/Whalebird-${VERSION}-linux.rpm build/Whalebird-${VERSION}-linux-x64.rpm
mv build/Whalebird-${VERSION}-linux.tar.bz2 build/Whalebird-${VERSION}-linux-x64.tar.bz2
windows:
npm run build:windows
mv build/Whalebird-${VERSION}-win.exe build/Whalebird-${VERSION}-windows-x64.exe
clean:
npm run build:clean

2
package-lock.json generated
View File

@ -549,7 +549,7 @@
},
"@types/events": {
"version": "1.2.0",
"resolved": "http://registry.npmjs.org/@types/events/-/events-1.2.0.tgz",
"resolved": "https://registry.npmjs.org/@types/events/-/events-1.2.0.tgz",
"integrity": "sha512-KEIlhXnIutzKwRbQkGWb/I4HFqBuUykAdHgDED6xqwXJfONCjF5VoE0cXEiurh3XauygxzeDzgtXUqvLkxFzzA=="
},
"@types/form-data": {

View File

@ -44,6 +44,7 @@
"build": {
"productName": "Whalebird",
"appId": "org.whalebird.desktop",
"artifactName": "${productName}-${version}-${os}.${ext}",
"directories": {
"output": "build"
},
@ -85,7 +86,8 @@
"target": [
"deb",
"rpm",
"snap"
"snap",
"tar.bz2"
],
"category": "Network"
}