You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
KaKi87 4dbd0f65c8 📝 As per 3e21b49 1 week ago
data 🎉 Initial commit 1 month ago
.gitignore 🎉 Initial commit 1 month ago
README.md 📝 As per 3e21b49 1 week ago
cli.js Allow inactive repo deletion without code 1 week ago
config.example.js 🔧 Add example config file 1 week ago
main.js Add Mac compatibility 1 week ago

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