From 89c7ae0574a83fa74004725643e8b0ff2648864c Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Sat, 7 Jan 2017 03:04:03 +1300 Subject: [PATCH] bug fix: TEST to commit to check if env variable fixes pm2 issue with electron --- README.md | 2 +- main.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 484cf23..b6f61f3 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ electron-packager . --platform=darwin --arch=x64 --icon=assets/icons/iguana_app_ Change directory to iguana and execute the following command to build the Windows app ```shell dir iguana -electron-packager . --platform=win32 --arch=x64 --icon=assets/icons/iguana_app_icon.ico --out=build/ +electron-packager . --platform=win32 --arch=x64 --icon=assets/icons/iguana_app_icon.ico --out=build/ --overwrite ``` change architecture build parameter to ```--arch=x64``` for 64 bit build diff --git a/main.js b/main.js index e9266fa..fb9eee7 100644 --- a/main.js +++ b/main.js @@ -19,6 +19,9 @@ Promise = require('bluebird'); app.setName('Iguana'); +process.env.ELECTRON_RUN_AS_NODE = true +console.log(process.env); + // preload.js const _setImmediate = setImmediate const _clearImmediate = clearImmediate