-
Notifications
You must be signed in to change notification settings - Fork 91
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
unzip.exe is not signed #68
Comments
Could this possibly lead to any errors when trying to unpack downloaded files on Windows? I've been getting a failure with code 1 on all of my Windows unpack attempts. Not sure if it's some sort of conflict with Windows Defender or something... |
@thoughtspacewebsites Possibly... can't say for sure. You could just sign it yourself. |
Darn... I've been running into code 1 and I'm pulling my hair out over this one. I couldn't find anything in the issue tracker about it. I'm packaging with Enigma Virtual Box... Do the ZIP contents NEED to be in a certain format in order to work? I wouldn't imagine that along would cause the unzip command to fail.... |
I haven't worked on this in awhile so I'm a little rusty but I'm pretty sure it does. But as you said that wouldn't make the unzup command fail, it would fail later when trying to run the app. It is possible to debug this, although it is awkward. Let's say you have code like: x()
y()
z() Change it to: require('nw.gui').Window.get().showDevTools();
setTimeout(function(){
debugger;
x();
y();
z();
}, 3000); |
I actually just figured it out.... This doesn't work with Enigma Virtual Box because EVB puts all of the windows files (nw.exe, the app, and all the DLLs) inside of a single EXE for distribution. Since the unzip.exe file lives inside of the node-webkit-updater module, and the node-webkit-updater folder is packed into an exe, it's failing out... Looks like I can't use Enigma Virtual Box with node-webkit-updater. This might be worth adding to the README since NWJS actually recommends Enigma Virtual Box as a distribution method... |
@thoughtspacewebsites please create a pull-request 😄. Thanks for finding this. Where does NW.js recommend it? |
I'll make a pull request as soon as I get everything with my app hammered out. I'm right on the verge of launching, so I want to get it taken care of really quick. NWJS mentions it on their "How to package and distribute your app" page: I ended up using InnoSetup, which seems to have solved this issue, since it installs the app loose to the Program Fiels directory instead of encasing everything in a single exe. Now I just have to figure out why it keeps stalling out on the updater.install() step... |
@thoughtspacewebsites yeah, we use InnoSetup. I'd recommend installing it to AppData/Roaming instead to avoid permissions problems. |
That's the route I ended up going, and I did run into the permissions issue when trying to update when I originally installed to programfiles. Everything is fixed now though and I successfully launched my app! Also, I created a pull request with an updated README.md that has this warning in the "troubleshooting" section: |
No description provided.
The text was updated successfully, but these errors were encountered: