Application developers often release new versions of their applications. Neutralinojs offers a simple and
extendable software updater for all supported operating systems. As you already know, Neutralinojs bundles all
application resources to the
resources.neu file. The auto updater basically replaces the existing
with the latest application resources over the network.
When you ask Neutralinojs to check for updates, it will check the update manifest via the network. Update manifest refers to a JSON document which has the following format.
applicationIdString: Application identifier. You need to use the same name you used in
neutralinojs.config.json. Otherwise, the update check operation will not proceed.
versionString: Application version.
resourcesURLString: A link to download
resources.neu. You can use any file name as you wish, but make sure to serve data with the
dataObject (optional): Additional data about the update. Accepts any JSON value.
Host the application manifest and resources file on the internet or a private network according to your access requirements. You can test auto updater locally by setting up a static server or placing update manifest and the resource file into your application's resources directory.
Also, you can setup a DevOps pipeline to automate your application updates if you need. If you release a new application version by upgrading Neutralinojs server, users have to download/install the app again since the auto updater only update application resources (including Neutralinojs client).
Call the following function whenever you need to check for updates.
Next, you can use the
manifest object to compare versions.
As shown in the above code snippet, you can call
Neutralino.updater.install to perform the update based
on the downloaded manifest. Later, restart the application with the