aluxian / nwjs-starter

:zap: NW.js starter project powered by Gulp. :zap:
MIT License
123 stars 42 forks source link

[Windows] Can't open output file during gulp pack:win32 #7

Open kevkha opened 8 years ago

kevkha commented 8 years ago

With makensis in place per issue #6, gulp pack:win32 fails with below error.

Processed 1 file, writing output:
Adding plug-ins initializing function... Done!
Processing pages... Done!
Removing unused resources... Done!
Generating language tables... Done!
Generating uninstaller... Done!

Output: "C:\Users\KevKha\Documents\GitHub\nwjs-start\dist\Starter.exe"
Can't open output file
Error - aborting creation process
[00:27:38] Finished 'pack:win32' after 8.8 s
kevkha commented 8 years ago

To fix this I had to create dist folder first.

I see this line shelljs.mkdir '-p', '../../dist' # it fails if the dir doesn't exist under Create packages for linux code block from gulpfile.coffee but there is none for Windows.