Comments (5)
You do not need admin permissions for swap. Swap takes files from TMP (given you specified a directory accessible to the user) and replaces corresponding ones in the app. But according to your error message, seems like it's symlink issue reported in #6, which not yet resolved.
from nw-autoupdater.
@dsheiko - Thanks for the response.
My error is in Windows (not mac) and the permission issue is not in the TEMP directory but in the installation directory (under Program Files). I can verify that it's solved by running the exe at the TEMP directory as admin.
I don't think it has anything to do with the symlink issue.
I tested the process on a MAC and it fails with ERROR: LSOpenURLsWithRole() failed for the application code -10810
- not sure why is that (might be also a permission issue, or maybe something wrong with the process which makes it exit with an exit code greater than 0).
from nw-autoupdater.
@dsheiko - About the MAC issue, I've made some tests and it seems that if I use exec
instead of spawn
it manages to open the app. Do you have any explanation?
If that makes sense I'll create a PR for this.
from nw-autoupdater.
But I use spawn to create a detached process. If you try to replace your app on a child of the same process, it will report files are locked
from nw-autoupdater.
I managed to run the process with my fork using exec
on MAC.. It just didn't work with spawn.
If you have any idea what the cause of the issue with spawn is I'll be glad to use a better solution for it.
from nw-autoupdater.
Related Issues (20)
- App does not swap when built with https://github.com/evshiron/nwjs-builder-phoenix HOT 4
- App does not restart after exiting post update (LINUX) HOT 3
- freeze screen
- Failed to compile (with create-react-app) HOT 1
- App not swap with script
- app.bak file in the same directory with app on Mac
- Doesn't restart after update, but updates without problems HOT 1
- unable to do anything other than output.innerHTML=''
- Unable to update after packaging using InnoSetup
- Error during installation of an update (EMFILE: too many open files)
- damaged update file
- Script Strategy HOT 1
- Folder backup
- Unable to download from AWS Cloudfront URL
- License file is missing in repo HOT 1
- NWJS v0.41.2 (latest) structure changed (build with nwjs-builder-phoenix) HOT 1
- Can not support https request HOT 4
- The default script deletes ALL files in folder (Mac)
- Callback fuction not defined in nodejs - chmod inside linux.js(Version - 1.1.11) HOT 1
- Request to move repo under NW Userland
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-autoupdater.