Comments (9)
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...
from nw-updater.
@thoughtspacewebsites Possibly... can't say for sure. You could just sign it yourself.
from nw-updater.
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....
from nw-updater.
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);
from nw-updater.
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...
from nw-updater.
@thoughtspacewebsites please create a pull-request 😄. Thanks for finding this. Where does NW.js recommend it?
from nw-updater.
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...
from nw-updater.
@thoughtspacewebsites yeah, we use InnoSetup. I'd recommend installing it to AppData/Roaming instead to avoid permissions problems.
from nw-updater.
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:
from nw-updater.
Related Issues (20)
- Update fails "EBUSY" "icudtl.dat" HOT 1
- NW 013.0-rc1 Uncaught TypeError: Cannot read property 'requireNwGui' of undefined HOT 2
- Alternative to unzip.exe HOT 1
- Uncaught TypeError: Cannot read property 'requireNwGui' of undefined HOT 2
- Cannot read property 'Symbol(Symbol.iterator)' of null
- invalid version at SemVer HOT 1
- Windows package with zip:false will not update HOT 3
- Unable to copy downloaded app updates from temp path to app path HOT 2
- How to pass user-data-dir path? HOT 1
- Command failed: hdiutil attach
- Options in checkNewVersion function
- Unable to download multiple files simultaneously
- Request to relocate repo to NW Utils HOT 2
- unpack callback is never called HOT 1
- Update fails with "EBUSY" when trying to `rmdir` folder (Windows XP) HOT 4
- possible to use with web2executable?
- Local\Temp\[object Object] "The system cannot find the path specified"?
- Unpack step failing occasionally with code 9 HOT 2
- Some Forks Seem Critical. Repo Still Active? HOT 2
- Unzip.exe not compatible with 64-bit versions of windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nw-updater.