Comments (6)
Oh thank you. Gonna fiddle with it at home
from nw-autoupdater.
chmod added and fixed the path to runner. Now it works to me.
Now I wonder why do have so huge home dir size...
Well, here what I do:
- create directory for test app ~/Sandbox
- extract there package from ../example/server/releases
- iterate version:
npm version patch
- edit version in server manifest
- start up the demo app from ~/Sandbox
my execDir is "/Users/sheiko/Sandbox/"
so it gets to "/Users/sheiko/Sandbox.bak/" and that is how intended
Can you check in DevTools what it gives you?:
require( "path" ).dirname( process.execPath.match(/^([^\0]+?\.app)\//)[1] )
from nw-autoupdater.
Maybe I have to escape spaces in the path that pass to swap.sh...
from nw-autoupdater.
Well, just pushed fixes. Does it work for you now?
from nw-autoupdater.
Hi,
-
Tested
git://github.com/dsheiko/nw-autoupdater.git#777e4cf76cdc428820f3ed5ae84a309070828642
withinstrategy: "ScriptSwap"
on fresh setup - upgrade works fine on Macos. But I still did not understand how to prevent app's parent folder backup process on MacOS, but do *.app backup itself? Seems readme.md contains text overhead and hardly understandable. As well whyswap.sh
has a duplicate in tmp folder/var/folders/..................../T/nw-autoupdater
and in original app's path after swap? -
Repeated test fails as before:
Error: Cannot unpack .tar.gz package /var/folders/64/sthbgckj4xgbsd_t11pfxpjc0000gn/T/mac-x64.tar.gz
at AutoUpdater.unpack (/Users/%USERNAME%/node_modules/nw-autoupdater/index.js:126:19)
at <anonymous>
$ pwd && find ./ -name "*x64*"
/var/folders/64/sthbgckj4xgbsd_t11pfxpjc0000gn/T
.//mac-x64.tar.gz
Debugging shows:
index.html:64 Error: Error: EEXIST: file already exists, symlink 'Versions/Current/Helpers' -> '/var/folders/64/sthbgckj4xgbsd_t11pfxpjc0000gn/T/nw-autoupdater/%APPNAME%.app/Contents/Versions/58.0.3029.81/nwjs Framework.framework/Helpers'
at AutoUpdater.unpack (/Users/%USERNAME%/node_modules/nw-autoupdater/index.js:127:27)
at <anonymous>
I checked folder described above:
$ pwd && \ls -la nw-autoupdater/
/var/folders/64/sthbgckj4xgbsd_t11pfxpjc0000gn/T
total 8
drwxr-xr-x@ 4 %USERNAME% staff 136 Apr 26 15:13 .
drwx------@ 101 %USERNAME% staff 3434 Apr 26 15:14 ..
drwxr-xr-x@ 3 %USERNAME% staff 102 Apr 26 14:30 %APPNAME%.app
-rwxrwxrwx@ 1 %USERNAME% staff 661 Apr 26 15:13 swap.sh
Seems script have to delete its tmp folder nw-autoupdater
in /var/folders/64/.................../T
after success swap.
- Did not test on other systems, needed to fix macos firstly.
from nw-autoupdater.
In fact Beta is not actual anymore, so I close the issue. Let's set new ones for the master branch
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.