dsheiko / nw-autoupdater

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

How to fix an error with OSX paths. #4

Closed elfexor closed 7 years ago

elfexor commented 7 years ago

photo_2017-04-12_17-16-32

The error appears after downloading and unpacking, after the application is restarted.

dsheiko commented 7 years ago

It seems like autoupdate lib could not find the downloaded and unpacked package in tmp. That's weird. Gonna add some extra checks to make sure the update is fully ready for the swap.

cry0m1 commented 7 years ago

Possibly, try to sign macos app with your developer id (check it openes without issues), pack, unpack, sign again and pack again. Provided path ...AppTranslocation.. is a macos sandbox when something is going wrong with validity of app. Typically it should run swap from place it was unpacked directly, path ex.: /private/var/folders/64/sthbgckj4xgbsd_t11pfxpjc0000gn/T/ and T - means temporary.

dsheiko commented 7 years ago

I believe the issue is fixed in 1.1.0. The backup directory was inferred wrong in a value like one above. Besides, you can set all execDir, backupDir, updateDir and logPath (to log file where everything about swap is reported). Feel free to reopen the issue, you it still persists for you