aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-27 17:26:24 +0100
committer0neGal <mail@0negal.com>2021-12-27 17:29:15 +0100
commit41fdcc946688d86d9cde8b8e2d905cad6c36caf6 (patch)
tree7c5206261769a8fa2cf50895639da5083f26cb86 /package.json
parent4614370c24b352dbd72ac500e690a3d91f3d659e (diff)
downloadViper-41fdcc946688d86d9cde8b8e2d905cad6c36caf6.tar.gz
Viper-41fdcc946688d86d9cde8b8e2d905cad6c36caf6.zip
added npm script for building package
Said script builds an AppImage and an NSIS Installer for Windows. I may make an AppX build as well, that way you can install it straight from your browser very neatly...
Diffstat (limited to 'package.json')
-rw-r--r--package.json13
1 files changed, 8 insertions, 5 deletions
diff --git a/package.json b/package.json
index 993105b..fea6bd5 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,10 @@
"version": "1.0.0",
"description": "Making your TF|2 modding life easier",
"main": "src/index.js",
+ "build": {"appId": "com.0negal.viper",
"scripts": {
- "start": "node_modules/.bin/electron src/index.js"
+ "start": "node_modules/.bin/electron src/index.js",
+ "build": "node_modules/.bin/electron-builder --win nsis --linux appimage"
},
"repository": {
"type": "git",
@@ -12,14 +14,15 @@
},
"author": "0neGal",
"license": "GPL-3.0-or-later",
- "bugs": {
- "url": "https://github.com/0neGal/viper/issues"
- },
+ "bugs": {"url": "https://github.com/0neGal/viper/issues"},
"homepage": "https://github.com/0neGal/viper#readme",
"dependencies": {
- "electron": "^16.0.5",
"follow-redirects": "^1.14.6",
"request": "^2.88.2",
"unzipper": "^0.10.11"
+ },
+ "devDependencies": {
+ "electron": "^16.0.5",
+ "electron-builder": "^22.14.5"
}
}