Comments (3)
This issue is similar to #21 except that i use nw-builder instead of nwjs-builder-phoenix.
from nw-autoupdater.
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
@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.
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)
- App does not swap when built with https://github.com/evshiron/nwjs-builder-phoenix HOT 4
- 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.