Skip to content

Commit 6da6411

Browse files
committed
Merge pull request #54 from rapid7/fix-upgrade-electron-packaging
Fix: Upgrade Electron packaging
2 parents d63328f + 33c4510 commit 6da6411

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Application.on('ready', () => {
4545
width: lastWindowState.width,
4646
height: lastWindowState.height,
4747
show: false,
48-
'web-preferences': {
49-
'node-integration': false
48+
'webPreferences': {
49+
'nodeIntegration': false
5050
}
5151
});
5252

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"start": "node app.js",
1717
"app": "electron .",
1818
"prebuild": "rm -rf dist/",
19-
"build": "electron-packager . Awsaml --asar --ignore=node_modules/electron --ignore=dist --out=dist --platform=all --arch=x64 --version=0.36.7 --app-version=${npm_package_version} --app-bundle-id=com.rapid7.awsaml --helper-bundle-id=com.rapid7.awsaml.helper",
19+
"build": "electron-packager . Awsaml --asar --ignore=node_modules/electron --ignore=dist --out=dist --platform=darwin,linux,win32 --arch=x64 --version=0.37.8 --app-version=${npm_package_version} --app-bundle-id=com.rapid7.awsaml --helper-bundle-id=com.rapid7.awsaml.helper",
2020
"postbuild": "export platform=darwin; npm run zip & export platform=linux; npm run zip & export platform=win32; npm run zip",
2121
"zip": "cd dist/Awsaml-${platform}-x64 && zip -q -FS -r ../awsaml-v${npm_package_version}-${platform}-x64.zip .",
2222
"test": "mocha",
@@ -41,8 +41,8 @@
4141
"xpath.js": "1.0.6"
4242
},
4343
"devDependencies": {
44-
"electron-packager": "5.2.1",
45-
"electron-prebuilt": "0.36.7",
44+
"electron-packager": "7.0.1",
45+
"electron-prebuilt": "0.37.8",
4646
"eslint": "^1.10.3",
4747
"eslint-config-airbnb": "^5.0.0",
4848
"eslint-config-rapid7": "0.0.15",

0 commit comments

Comments
 (0)