mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-20 20:56:19 +01:00
Add Makefile to build release files
This commit is contained in:
parent
0411459f48
commit
2d0c8b9cd5
25
Makefile
Normal file
25
Makefile
Normal 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
2
package-lock.json
generated
@ -549,7 +549,7 @@
|
|||||||
},
|
},
|
||||||
"@types/events": {
|
"@types/events": {
|
||||||
"version": "1.2.0",
|
"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=="
|
"integrity": "sha512-KEIlhXnIutzKwRbQkGWb/I4HFqBuUykAdHgDED6xqwXJfONCjF5VoE0cXEiurh3XauygxzeDzgtXUqvLkxFzzA=="
|
||||||
},
|
},
|
||||||
"@types/form-data": {
|
"@types/form-data": {
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"productName": "Whalebird",
|
"productName": "Whalebird",
|
||||||
"appId": "org.whalebird.desktop",
|
"appId": "org.whalebird.desktop",
|
||||||
|
"artifactName": "${productName}-${version}-${os}.${ext}",
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "build"
|
"output": "build"
|
||||||
},
|
},
|
||||||
@ -85,7 +86,8 @@
|
|||||||
"target": [
|
"target": [
|
||||||
"deb",
|
"deb",
|
||||||
"rpm",
|
"rpm",
|
||||||
"snap"
|
"snap",
|
||||||
|
"tar.bz2"
|
||||||
],
|
],
|
||||||
"category": "Network"
|
"category": "Network"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user