Begining to transition over to electron-builder for building the app. Currently in a testing phase for this, gradually refining the build options. Once electron-builder has been fully implemented, the electron-packager scripts will be removed. Also updated electron to address a security issue.

This commit is contained in:
Daniel Scalzi 2018-01-24 01:08:29 -05:00
parent d7aa79f7d3
commit 69f9d297d0
5 changed files with 1342 additions and 10 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
/.vs/
/.vscode/
/target/
/logs/
/logs/
/dist/

BIN
build/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

1326
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,8 @@
"buildwin": "electron-packager . WesteroscraftLauncher --overwrite --asar --platform=win32 --arch=x64 --ignore=\"\\.git(ignore|modules)|logs|README.md|.vscode|docs|target\" --out=\"./target\" --icon=\"app/assets/images/WesterosSealSquare.ico\"",
"builddarwin": "electron-packager . WesteroscraftLauncher --overwrite --asar --platform=darwin --ignore=\"\\.git(ignore|modules)|logs|README.md|.vscode|docs|target\" --out=\"./target\" --icon=\"app/assets/images/WesterosSealSquare.ico\"",
"buildlinux": "electron-packager . WesteroscraftLauncher --overwrite --asar --platform=linux --arch=x64 --ignore=\"\\.git(ignore|modules)|logs|README.md|.vscode|docs|target\" --out=\"./target\" --icon=\"app/assets/images/WesterosSealSquare.ico\"",
"buildlinuxarm": "electron-packager . WesteroscraftLauncher --overwrite --asar --platform=linux --arch=arm64 --ignore=\"\\.git(ignore|modules)|logs|README.md|.vscode|docs|target\" --out=\"./target\" --icon=\"app/assets/images/WesterosSealSquare.ico\""
"buildlinuxarm": "electron-packager . WesteroscraftLauncher --overwrite --asar --platform=linux --arch=arm64 --ignore=\"\\.git(ignore|modules)|logs|README.md|.vscode|docs|target\" --out=\"./target\" --icon=\"app/assets/images/WesterosSealSquare.ico\"",
"dist": "SET ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true & electron-builder"
},
"engines": {
"node": "8.9.x"
@ -36,7 +37,25 @@
"uuid": "^3.2.1"
},
"devDependencies": {
"electron": "^1.7.10",
"electron": "^1.7.11",
"electron-builder": "^19.54.0",
"electron-packager": "^10.1.1"
},
"build": {
"appId": "com.westeroscraft.launcher",
"productName": "WesterosCraftLauncher",
"copyright": "Copyright © 2018 WesterosCraft",
"directories": {
"buildResources": "build",
"output": "dist",
"app": "."
},
"win": {
"target": "portable",
"icon": "build/icon.ico"
},
"compression": "maximum",
"files": ["!{target,logs,.vscode,docs}"],
"asar": true
}
}