portalkerop.blogg.se

Javascript updates for mac
Javascript updates for mac






javascript updates for mac
  1. #Javascript updates for mac how to#
  2. #Javascript updates for mac update#

Read the manifest from the remote release server The NPM module provides API similar to one of node-webkit-updater, but extended, adapted for NW.js with Node 7.x and based on clean async/await syntax.

#Javascript updates for mac how to#

The example shows the way how to use javascript module as an entry point for NW.js application and check for updates in background. The logic to check for updates needs to be built on your own too.

javascript updates for mac

  • Updater’s executalbe has way smaller size as it doesn’t require bundling the whole new NW.js application with the main application.
  • Doesn’t require elevated privilegies (unless application itself has been installed in the folder which require elevated privilegies).
  • There are multiple advantages over node-webkit-updater: These can be passed to updater via command line arguments -bundle and -inst-dir, where -bundle is the path to the zip archive with the new app version and -inst-dir is the path to app’s executable.

    #Javascript updates for mac update#

    To update target application updater needs to know two things - where zip archive with the new version is located and where is the app’s executable to restart application after update. The tiny golang application (when built it is just ~2MB), which can be bundled with NW.js application and then used to unpack updates. You should build this logic by yourself though ( basic example).

  • The new app will run itself from original folder and exit the process.
  • The new app (in temp) will copy itself to the original folder, overwriting the old app.
  • Run new app from temp and kill the old one (i.e.
  • If the version is different from the running one, download new package to a temp directory.
  • Check the manifest for version (from your running “old” app).
  • NPM module which gives you the low-level API to: node-webkit-updater (by nwjs-autoupdater (by nw-autoupdater (by node-webkit-updater

    javascript updates for mac

    Below is the list of existing soutions, which worth checking. NW.js tend to support the update solution made by community, not a built-in one.








    Javascript updates for mac