Git Product home page Git Product logo

Comments (9)

thoughtspacewebsites avatar thoughtspacewebsites commented on September 4, 2024

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.

adam-lynch avatar adam-lynch commented on September 4, 2024

@thoughtspacewebsites Possibly... can't say for sure. You could just sign it yourself.

from nw-updater.

thoughtspacewebsites avatar thoughtspacewebsites commented on September 4, 2024

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.

adam-lynch avatar adam-lynch commented on September 4, 2024

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.

thoughtspacewebsites avatar thoughtspacewebsites commented on September 4, 2024

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.

adam-lynch avatar adam-lynch commented on September 4, 2024

@thoughtspacewebsites please create a pull-request 😄. Thanks for finding this. Where does NW.js recommend it?

from nw-updater.

thoughtspacewebsites avatar thoughtspacewebsites commented on September 4, 2024

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:

https://github.com/nwjs/nw.js/wiki/how-to-package-and-distribute-your-apps#an-alternative-way-to-make-an-executable-file-in-windows

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.

adam-lynch avatar adam-lynch commented on September 4, 2024

@thoughtspacewebsites yeah, we use InnoSetup. I'd recommend installing it to AppData/Roaming instead to avoid permissions problems.

from nw-updater.

thoughtspacewebsites avatar thoughtspacewebsites commented on September 4, 2024

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:

#99

from nw-updater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.