Giter VIP home page Giter VIP logo

Comments (3)

vinaynb avatar vinaynb commented on August 23, 2024

This issue is similar to #21 except that i use nw-builder instead of nwjs-builder-phoenix.

from nw-autoupdater.

vinaynb avatar vinaynb commented on August 23, 2024

Update:
I observed strange behaviour. When starting app with a certain version (say 1.0, 2.0 is available) there is a certain error window shown by nw.js which contains message "Your preferences could not be saved". If i don't close that window first before going ahead for downloading update, then the app does not restart successfully.

But if i do close that window before starting update progress, the new app with v 2.0 starts successfully and all happens as expected. Attaching the screenshot of window shown by nw.js

screenshot from 2017-09-18 19 59 46

@dsheiko do you have any idea what's going on because of that window and does it really affect the restart process ?

Also i have one more question - i have modified the shell script and put some echo statements just to debug. Below is my swap.sh in my project

#!/bin/bash
for i in "$@"
do
case $i in
  --app-path=*)
    APP_PATH="${i#*=}"
    shift
    ;;
  --bak-path=*)
    BAK_PATH="${i#*=}"
    shift
    ;;
  --update-path=*)
    UPDATE_PATH="${i#*=}"
    shift
    ;;
  --runner=*)
    RUNNER="${i#*=}"
    shift
    ;;
  --verbose=*)
    VERBOSE="${i#*=}"
    shift
    ;;
    *)
            # unknown option
    ;;
esac
done
echo "rsync -al${VERBOSE} --delete ${APP_PATH}/. ${BAK_PATH}/"
rsync -al${VERBOSE} --delete "${APP_PATH}/." "${BAK_PATH}/"
echo " "
echo "123"
echo "rsync -al${VERBOSE} --delete ${UPDATE_PATH}/. ${APP_PATH}/"
rsync -al${VERBOSE} --delete "${UPDATE_PATH}/." "${APP_PATH}/"
echo "456"

echo " "
echo "Hello world"
echo "$APP_PATH/${RUNNER}&"
"$APP_PATH/${RUNNER}"&
echo "Hello world ends"

I have custom logPath and the only log i see in there is echo of first rsync command. Nothing else. Even in cases of successful restart all i see is just one entry of that first rsync command. Is that normal ?

from nw-autoupdater.

Arti3DPlayer avatar Arti3DPlayer commented on August 23, 2024

I have custom logPath and the only log i see in there is echo of first rsync command. Nothing else. Even in cases of successful restart all i see is just one entry of that first rsync command. Is that normal ?

the same

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.