From 2d0c8b9cd505d7d4fb176212ed05c54ee166a92f Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Wed, 2 Jan 2019 23:07:29 +0900
Subject: [PATCH] Add Makefile to build release files
---
Makefile | 25 +++++++++++++++++++++++++
package-lock.json | 2 +-
package.json | 4 +++-
3 files changed, 29 insertions(+), 2 deletions(-)
create mode 100644 Makefile
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..fbea260a
--- /dev/null
+++ b/Makefile
@@ -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
diff --git a/package-lock.json b/package-lock.json
index 73dc76d8..87473f4a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -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": {
diff --git a/package.json b/package.json
index b4417d81..7230fcd9 100644
--- a/package.json
+++ b/package.json
@@ -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"
}