Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hschneider committed Feb 27, 2024
1 parent 4b9c997 commit 52bfa9e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ Now all clients can process the manifest.

## Neutralino App Setup

### Setup on all Platforms

Copy the **_install/PLATFORM/bin** folder to your app's **resources** folder. E.g.

`_install/macos-x64/bin --> resources/bin`
Expand Down Expand Up @@ -252,6 +254,19 @@ AUTOUPDATE.checkSilent().then(updateAvailable => {

That's it. If something goes wrong, you can track all actions in your app's dev-console, as long as the debug parameter is true.

### On Windows

Since **curl.exe** has external depencies, move the `bin` folder out of your `resources` folder and let your installer place it on the same folder level like `resources.neu` like this:

```
app.exe
resources.neu
bin
curl.exe
libcurl-x64.dll
...
```

## Run the Demo

To run this demo cd to its folder and enter:
Expand Down
6 changes: 5 additions & 1 deletion resources/js/neutralino-autoupdate/autoupdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NeutralinoAutoupdate {
// opt lang: Dialog language, defaults to en
// opt customLang: A custom language dict

this.version = '1.2.0';
this.version = '1.2.1';
this.debug = opt.debug || true;

this.urlManifest = urlManifest; // Manifest URL
Expand All @@ -38,6 +38,10 @@ class NeutralinoAutoupdate {
this.appReourcesJS = this.appResources + '/js'; // App JS resources
this.appResourcesBIN = this.appResources + '/bin'; // App BIN resources

if(NL_OS === 'Windows') {
this.appResourcesBIN = NL_PATH + '/bin';
}

this.updKey = 'update' + this.os + this.arch.toUpperCase(); // Manifest update-key: updateOsARCH
this.updating = false; // True while .update() is running

Expand Down

0 comments on commit 52bfa9e

Please sign in to comment.