Server to update your tauri app. Supports github public/private repositories.
git clone https://github.com/wovnep/tauri-update-server.git
cd tauri-update-server
npm install
npm run build && npm start
In tauri.conf.json
Replace http://localhost:8080 with your hostname. Make sure to add all the query parameters.
...
"updater": {
"active": true,
"endpoints": [
"http://localhost:8080/update?current_version={{current_version}}&target={{target}}&arch={{arch}}"
],
"dialog": true,
"pubkey": "xxx"
}
...
docker pull wovnep/tauri-update-server:latest
docker run \
-e USERNAME='user' \
-e REPO='repository' \
-e TAG_STRUCTURE='v' \
-e API_KEY='xxxxxxxx' \
-e DEFAULT_LANG='en-US' \
-e SIGNATURE='true' \
wovnep/tauri-update-server:latest
services:
update-server:
container_name: Tauri update server
image: wovnep/tauri-update-server:latest
ports:
- "3000:8080"
environment:
- USERNAME=wovnep
- REPO=tauri-updater
- API_KEY=${API_KEY}
- TAG_STRUCTURE=v
- DEFAULT_LANG=en-US
- SIGNATURE=true
Name | Required | Default | Description |
---|---|---|---|
USERNAME | true | null | Github username/owner/organization |
REPO | true | null | Github repository of the project |
DEFAULT_LANG | false | en-US | Windows build language. Supported languages. |
TAG_STRUCTURE | true | v | Release tag prefix. eg: v in v1.23.4 |
SIGNATURE | false | false | If you sign updates, Set this to true. |
API_KEY | false | null | Personal access token. |
Build
npm run build
Start
npm start
Dev
npm run dev
MIT