@stanlemon - Thank you for this great project!
I'm fairly new to Node.js, and I wasn't quite able to get it to run on a Windows (7) machine.
I'm running Node version '8.9.4' .
I don't care that much about packaging the electron app (although that sounds very cool!) - I would like to have a working 'npm start' command. Some errors:
1. The install command at first threw a few messages concerning deprecated packages that should be updated (coffeescript, pug, jstransformer, e.g.). I installed those dependencies using npm install, and that made those messages go away.
2. On 'npm rebuild' and 'npm start', I saw the below error a few times. It looks like it's trying to set or reference an Environment Variable.
[email protected] start C:\DevTools\SFDC-Explorer
NODE_ENV=development electron main.js
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: NODE_ENV=development electron main.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
3. But I also got the rebuild to complete:
C:\DevTools\SFDC-Explorer>npm run rebuild
[email protected] rebuild C:\DevTools\SFDC-Explorer
electron-rebuild
โ Rebuild Complete
C:\DevTools\SFDC-Explorer>npm run package
[email protected] package C:\DevTools\SFDC-Explorer
electron-packager . 'Salesforce Explorer' --overwrite --out=release --asar=true
Packaging app for platform win32 x64 using electron v1.8.2
Wrote new app to release'Salesforce-win32-x64
4. This was something I ran into when I ran install again. I looked in the directory [C:\DevTools\SFDC-Explorer\node_modules\keytar\build\keytar.vcxproj] to see if that Visual C++ project file was there, and it was not - so it looks like a path problem somewhere.
C:\DevTools\SFDC-Explorer>npm install
[email protected] install C:\DevTools\SFDC-Explorer\node_modules\keytar
node-gyp rebuild
C:\DevTools\SFDC-Explorer\node_modules\keytar>if not defined npm_config_node_gyp
(node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node
-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:
\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" re
build )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\DevTools\SFDC-Explorer\node_modules\keytar\build\keytar.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:198:12)
Thanks again! Michael