arvindr21 / slush-wean

A slush generator to generate Webkit Express Angular Node desktop apps
MIT License
35 stars 8 forks source link

How to force "gulp run" to build a 32-bit of nw.js #8

Closed kevkha closed 9 years ago

kevkha commented 9 years ago

I need my app to build a win32 but gulp always build a win64 based on my Win7 x64. How to force "gulp run" to build a 32-bit of nw.js?

C:\nwProjects\test>gulp run
[00:44:59] Using gulpfile ~\nwProjects\test\gulpFile.js
[00:44:59] Starting 'run'...
Latest Version: v0.12.2
Using v0.12.2
Create cache folder in C:\nwProjects\test\node_modules\node-webkit-builder\cache\0.12.2
Using cache for: win64
Launching App

Thanks in advance.

kevkha commented 9 years ago

I made changes to gulpFile.js and it seems to build nw.js win32 but does not launch app.

from

// Run project
gulp.task('run', shell.task([
    'node node_modules/node-webkit-builder/bin/nwbuild -r ./'
]));

to

// Run project
gulp.task('run', shell.task([
    'node node_modules/node-webkit-builder/bin/nwbuild -p win32 ./'
]));

Is there a way I can specify "win32" during "gulp run"? I am trying to avoid making changes to gulpFile.js.

kevkha commented 9 years ago

Closing. See https://github.com/mllrsohn/node-webkit-builder/issues/240 for details on workaround.