Go to file
KaKi87 fd07fd3d66 👽 As per server-KaTys/status@c3fbd2b & server-KaTys/status@5b09d2b 2023-12-14 11:55:29 +01:00
data 🎉 Initial commit 2022-10-30 21:05:29 +01:00
.gitignore 🎉 Initial commit 2022-10-30 21:05:29 +01:00
README.md 👽 As per server-KaTys/status@c3fbd2b & server-KaTys/status@5b09d2b 2023-12-14 11:55:29 +01:00
cli.js ♻️ 'cdn.jsdelivr.net/npm/axios' -> 'npm:axios' 2023-03-02 14:48:37 +01:00
config.example.js 🔧 Add example config file 2022-11-23 16:48:13 +01:00
main.js ♻️ 'rawcdn.githack.com' -> 'cdn.jsdelivr.net' 2023-03-02 16:12:51 +01:00

README.md

tauri-update-server

Automatically interface Tauri's updater with your git repository's releases.

Usage

Self-host the server (optional)

cp config.example.js config.js # TODO: fill
deno run --allow-net --allow-read=data --allow-write=data main.js

Add/remove repos

deno run --allow-net https://git.kaki87.net/KaKi87/tauri-update-server/raw/branch/master/cli.js

When self-hosting, specify your server URL with --url=<url> (https://tauri-updates.kaki87.net by default).

In order to verify repo ownership, you will have to push a commit with a message ending with a specific code. You may use empty commits :

git commit --allow-empty -m "Enable/disable updater <code>"

Configure apps

In tauri.conf.json :

{
    "tauri": {
        "updater": {
            "active": true,
            "endpoints": [
                "<url>/repo/<id>/update/{{target}}/{{current_version}}"
            ]
        }
    }
}

Publish updates

In your releases, include the following files :

  • *_amd64.AppImage.tar.gz & *_amd64.AppImage.tar.gz.sig for Linux
  • *.msi.zip & *.msi.zip.sig for Windows
  • *.app.tar.gz & *.app.tar.gz.sig for Mac