Browse Source

bug fix: TEST to commit to check if env variable fixes pm2 issue with electron

ca333-dev
Satinder Grewal 8 years ago
parent
commit
89c7ae0574
  1. 2
      README.md
  2. 3
      main.js

2
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 Change directory to iguana and execute the following command to build the Windows app
```shell ```shell
dir iguana 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 change architecture build parameter to ```--arch=x64``` for 64 bit build

3
main.js

@ -19,6 +19,9 @@ Promise = require('bluebird');
app.setName('Iguana'); app.setName('Iguana');
process.env.ELECTRON_RUN_AS_NODE = true
console.log(process.env);
// preload.js // preload.js
const _setImmediate = setImmediate const _setImmediate = setImmediate
const _clearImmediate = clearImmediate const _clearImmediate = clearImmediate

Loading…
Cancel
Save