dsheiko / nw-autoupdater

⛔️ [DEPRECATED] Library provides low-level API to control NW.js app auto-updates
MIT License
75 stars 36 forks source link

App does not swap when built with https://github.com/evshiron/nwjs-builder-phoenix #21

Open Ajeey opened 6 years ago

Ajeey commented 6 years ago

Hi,

The app does not swap when I use https://github.com/evshiron/nwjs-builder-phoenix to build.

I get a message saying - "The application will automatically restart to finish installing the update"

And it does not relaunch after pressing "ok"

How do I check the logs or any information on this?

P.S Is this update library compatible with https://github.com/evshiron/nwjs-builder-phoenix ?

geolffreym commented 6 years ago

Hi @Ajeey I was having the same problem with my application as I understand it could be due to a bug generated by using the restartToSwap function which app = join (updateDir, executable), binds the executable directory to the update directory file, but the problem is when the unpack (zip, tar) generates an additional directory in the updateDir with the name of the zip or tar package that creates a directory problem ERROR: Error: spawn / tmp / nw-autoupdater / {executable} ENOENT

geolffreym commented 6 years ago

https://github.com/dsheiko/nw-autoupdater/pull/25/commits/07d837d34730698c4af59710385979597321fe62

dsheiko commented 6 years ago

The fix verified and published to NPM as v.1.1.3

victoroliveira commented 4 years ago

This issue remains opened or could be closed?