Added more configuration options for electron-builder, removed electron-packager scripts and dependency. Investigating ways to run multi-platform builds efficiently.

This commit is contained in:
Daniel Scalzi
2018-01-24 16:23:44 -05:00
parent 69f9d297d0
commit 6c5e9303b4
3 changed files with 49 additions and 534 deletions

View File

@@ -42,24 +42,25 @@ If you use VS Code, you can run this directly from the IDE. Copy the following c
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}\\node_modules\\.bin\\electron",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}\\node_modules\\.bin\\electron.cmd"
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"program": "${workspaceRoot}\\index.js",
"program": "${workspaceRoot}/index.js",
"console": "integratedTerminal",
"protocol": "inspector"
"protocol": "inspector",
"timeout": 100000000
},
{
"name": "Debug Renderer Process",
"type": "chrome",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}\\node_modules\\.bin\\electron",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}\\node_modules\\.bin\\electron.cmd"
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"runtimeArgs": [
"${workspaceRoot}\\index.js",
"${workspaceRoot}/index.js",
"--remote-debugging-port=9222"
],
"webRoot": "${workspaceRoot}"
@@ -84,16 +85,20 @@ Please note that if you are debugging the application with VS Code and have laun
# Building
Run either of the build scrips noted below. On some operating systems you may need to run these commands through a terminal with administrator privileges.
Run either of the build scrips noted below. Note that each platform can only be build when running on the specific operating system. Currently investigating ways to run multi-platform builds efficiently.
### Supported Platforms
### Build for Current Platform
* `npm run dist`
### Platforms Specifc Builds
* Windows x64 (win32 x64)
* `npm run buildwin`
* `npm run dist:win`
* MacOS (darwin x64)
* `npm run builddarwin`
* `npm run dist:mac`
* Linux (linux x64)
* `npm run buildlinux`
* `npm run dist:linux`
# Issues / Further Support #