Merge pull request #818 from h3poteto/makefile
Add Makefile to build release files
This commit is contained in:
commit
656015c387
|
@ -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
|
|
@ -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": {
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue