aluxian / nwjs-starter

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

'build:win32' error #8

Open umanda opened 8 years ago

umanda commented 8 years ago

Hi

I am using win 64 pc and I get following error once I run gulp build:win32 command

umanda@umanda-PC MINGW64 /d/umanda/rnd/klout (master)

$ gulp build:win32
[12:07:34] Requiring external module coffee-script/register
[12:07:35] Using gulpfile D:\umanda\rnd\klout\gulpfile.coffee
[12:07:35] Starting 'build:win32'...
[12:07:37] Using v0.12.2
[12:07:37] Create cache folder in D:\umanda\rnd\klout\cache\0.12.2
[12:07:37] Using cache for: win32
[12:07:38] 'build:win32' errored after 3.38 s
[12:07:38] Error in plugin 'gulp-node-webkit-builder'
Message:
    Error occured while building app!

What Could be the the issue..?

I am referring your tutorial https://blog.aluxian.com/how-to-create-cross-platform-desktop-apps-with-nw-js/

itaibaruch commented 8 years ago

I have the same problem... any way to resolve it?

itaibaruch commented 8 years ago

Ok, the way I solve it: first update all the npm devDpendencies (I think the key is updating to "gulp-nw-builder" ) "devDependencies": { "coffee-script": "^1.9.3", "gulp": "^3.8.11", "gulp-github-release": "^1.0.3", "gulp-load-plugins": "^1.3.0", "gulp-nw-builder": "^1.3.1", "gulp-uglify": "^2.0.0", "merge-stream": "^1.0.0", "run-sequence": "^1.1.0", "shelljs": "^0.7.4" },

second update the gulpfile.coffee line 20: .pipe $.nwBuilder (previously '.pipe $.nodeWebkitBuilder' ) line 22: version: '0.14.7' (previously 'version: '0.12.2'')

I hope it will help save some hairs to someone :)

henrykey commented 7 years ago

Hi, I followed what you mentioned above to update everything and build it with: $ gulp build:osx64 got following msgs. [11:54:36] Requiring external module coffee-script/register [11:54:37] Using gulpfile ~/git/klout/gulpfile.coffee (node:2756) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. [11:54:37] Starting 'build:osx64'... [11:54:41] Using v0.19.4 [11:54:41] Create cache folder in /Users/kehongwei/git/klout/cache/0.19.4 [11:54:41] Downloading: http://dl.nwjs.io/v0.19.4/nwjs-sdk-v0.19.4-osx-x64.zip [11:54:42] undefined [11:54:42] 'build:osx64' errored after 5.26 s [11:54:42] Error in plugin 'gulp-nw-builder'

is anything missing? thanks

henry

itaibaruch commented 7 years ago

Hi @henrykey, I don't know what is the problem.... but did you try to download the http://dl.nwjs.io/v0.19.4/nwjs-sdk-v0.19.4-osx-x64.zip manually and paste it to the cache folder (/Users/kehongwei/git/klout/cache/0.19.4) and build again?

henrykey commented 7 years ago

yes, I did. the zip file already in the directory of cache.

henrykey commented 7 years ago

@itaibaruch after unzip the file, get new error msgs: $ gulp build:osx64 [00:36:07] Requiring external module coffee-script/register [00:36:08] Using gulpfile ~/git/klout/gulpfile.coffee (node:3411) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. [00:36:08] Starting 'build:osx64'... [00:36:10] Using v0.19.4 [00:36:10] Create cache folder in /Users/kehongwei/git/klout/cache/0.19.4 [00:36:10] Using cache for: osx64 [00:36:10] Create release folder in /Users/kehongwei/git/klout/build/Starter/osx64 [00:36:12] 'build:osx64' errored after 4.16 s [00:36:12] Error in plugin 'gulp-nw-builder' Message: Error occurred while building app: Error: ENOENT: no such file or directory, open '/Users/henry/git/klout/build/Starter/osx64/Starter.app/Contents/Info.plist'

itaibaruch commented 7 years ago

@henrykey after reading some more https://github.com/nwjs/nw-builder#optionsmacplist

macPlist can receive a url with the location of the info.plist file. so you can put the file from the cache folder.

In my case (I use 0.14.7) this is the url, and I updated the following lines 26-28 macPlist: './cache/0.14.7/osx64/nwjs-sdk-v0.14.7-osx-x64/nwjs.app/Contents/info.plist'

NSHumanReadableCopyright: 'aluxian.com'

      # CFBundleIdentifier: 'com.aluxian.starter'