Giter VIP home page Giter VIP logo

Comments (6)

dsheiko avatar dsheiko commented on July 21, 2024

Oh thank you. Gonna fiddle with it at home

from nw-autoupdater.

dsheiko avatar dsheiko commented on July 21, 2024

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:

  1. create directory for test app ~/Sandbox
  2. extract there package from ../example/server/releases
  3. iterate version: npm version patch
  4. edit version in server manifest
  5. 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.

dsheiko avatar dsheiko commented on July 21, 2024

Maybe I have to escape spaces in the path that pass to swap.sh...

from nw-autoupdater.

dsheiko avatar dsheiko commented on July 21, 2024

Well, just pushed fixes. Does it work for you now?

from nw-autoupdater.

cry0m1 avatar cry0m1 commented on July 21, 2024

Hi,

  1. Tested git://github.com/dsheiko/nw-autoupdater.git#777e4cf76cdc428820f3ed5ae84a309070828642 within strategy: "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 why swap.sh has a duplicate in tmp folder /var/folders/..................../T/nw-autoupdater and in original app's path after swap?

  2. 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.

  1. Did not test on other systems, needed to fix macos firstly.

from nw-autoupdater.

dsheiko avatar dsheiko commented on July 21, 2024

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)

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.