/tauri-update-server-node

Tauri's Automatic Updater API built with Node.js

Primary LanguageJavaScriptMIT LicenseMIT

tauri-update-server-node

Tauri's App updater with Node JS with your git repository's releases.

Usage

Development

  1. Fork this repository
  2. Clone your fork locally using folooing command
    $ git clone https://github.com/<your_github_username>/tauri-update-server-node.git
  3. Change directory to tauri-update-server-node
    $ cd tauri-update-server-node
  4. Install dependencies using yarn
    $ yarn install
  5. Rename the .env.example file to .env and fill in the required details (GH_OWNER and GH_REPO)
  6. Run the server using
    $ yarn start

Configure apps

In tauri.conf.json :

{
  // For more information, see https://tauri.app/v1/guides/distribution/updater/#tauri-configuration
  "tauri": {
    "updater": {
      "active": true,
      "endpoints": [
        "https://releases.myapp.com/{{target}}/{{arch}}/{{current_version}}"
      ],
      "dialog": true,
      "pubkey": "YOUR_UPDATER_SIGNATURE_PUBKEY_HERE"
    }
  }
}

Publish updates

In your releases, please follow the following naming convention:

Operating System x86_64 (64-bit) i686 (32-bit) armv7 (ARM32) aarch64 (ARM64)
macOs Installer:
*x64.app.tar.gz
*x64.dmg.tar.gz
Signature:
*x64.app.tar.gz.sig
*x64.dmg.tar.gz.sig
Installer:
*amd64.app.tar.gz
*amd64.dmg.tar.gz
Signature:
*amd64.app.tar.gz.sig
*amd64.dmg.tar.gz.sig
Linux Installer:
*amd32.AppImage.tar.gz
*amd32.deb.tar.gz
Signature:
*amd32.AppImage.tar.gz.sig
*amd32.deb.tar.gz.sig
Installer:
*amd64.AppImage.tar.gz
*amd64.deb.tar.gz
Signature:
*amd64.AppImage.tar.gz.sig
*amd64.deb.tar.gz.sig
Windows Installer:
*x64.msi.zip
Signature:
*x64.msi.zip.sig
Installer:
*x32.msi.zip
Signature:
*x32.msi.zip.sig

License

MIT