Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download of version v0.13.0 fails on linux64 #222

Closed
ghost opened this issue May 11, 2015 · 14 comments
Closed

download of version v0.13.0 fails on linux64 #222

ghost opened this issue May 11, 2015 · 14 comments

Comments

@ghost
Copy link

ghost commented May 11, 2015

When running command nwbuild the script tries to download version v0.13.0 from http://dl.nwjs.io/v0.13.0 but fails since there is no version available. I mean yes there is one in fact but it's path is:
http://dl.nwjs.io/v0.13.0/alpha0/.
nwbuild will also fail to start if there is no network connection.

@arthurmichel
Copy link

Hey!
add the version
if you are using GulpJS ex.

var nw = new NwBuilder({
version: '0.12.1',
files: [ './**'],
platforms: ['osx'] // change this to 'win' for/on windows
});

@ghost
Copy link
Author

ghost commented May 11, 2015

Thanks for the tip!

Actually I'm using the nwbuild command under linux so i run: nwbuild -r src/

src folder being my source folder :)

Maybe there is a way to set this parameter with the command line tool ?
Le 11 mai 2015 11:16, "Arthur Michel" notifications@github.com a écrit :

Hey!
add the version
if you are using GulpJS ex.

var nw = new NwBuilder({
version: '0.12.1',
files: [ './**'],
platforms: ['osx'] // change this to 'win' for/on windows
});


Reply to this email directly or view it on GitHub
#222 (comment)
.

@arthurmichel
Copy link

nwbuild -v v0.12.1 src/

@ghost
Copy link
Author

ghost commented May 11, 2015

It works like a charm, thanks!

2015-05-11 11:52 GMT+02:00 Arthur Michel notifications@github.com:

nwbuild -v v0.12.1 src/


Reply to this email directly or view it on GitHub
#222 (comment)
.

@kasongoyo
Copy link

Thanks so much arthurmichel,

@adam-lynch
Copy link
Contributor

From #226 (comment):

When running nwb (as part of phonegap-app-desktop build), it dies with "Fatal error: Unable to download nodewebkit." After some debugging, the error being thrown is from request, and is "Invalid protocol: undefined", in the downloader. This is because lib/downloader.js line 50 sets rq.proxy = true, but the request docs show that request.proxy should be set to a proxy URL, not a boolean. I commented out rq.proxy=true and that made everything work, but haven't sent a pull request removing the line because I imagine you set proxy=true for some reason and so this needs thinking through.

@adam-lynch
Copy link
Contributor

Ignore last comment. I've published 1.0.12 which fixes this. It now validates the latest version (i.e. checks that it's not an alpha build).

@estvmachine
Copy link

How can i install a certain version not the latest, i want specifically the 'node-webkit-v0.8.6-win-ia32' version. In advanced, thanks for you hard work!.

@adam-lynch
Copy link
Contributor

Pass version: '0.8.6'

@adam-lynch
Copy link
Contributor

@estvmachine Sorry, submitted that early. Either put version: '0.8.6' in options object passed to node-webkit-builder (if you're using it programmatically) or use -v 0.8.6 if you're using the command-line.

@damiandennis
Copy link

running version 1.0.12 but still having issue with this.

if I run:

nwbuild -p linux64 ./

I get:

Downloading: http://dl.nwjs.io/v0.13.0/nwjs-v0.13.0-linux-x64.tar.gz
ERROR: The version 0.13.0 does not have a corresponding build posted at http://dl.node-webkit.org/.

If i run

nwbuild -p linux64 -v 0.12.1 ./

it works.

@damiandennis
Copy link

The workaround works but does not make sense to have the default throw an error due to alpha status.

@fritx
Copy link

fritx commented Jul 6, 2015

for me, added -p osx64 flag and it worked 👍

@estvmachine
Copy link

@adam-lynch works for me, thanks

stwiname pushed a commit to stwiname/nw-builder that referenced this issue Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants