AGENT SKILL

tauri-updater

暂无简介

License 许可
MIT
最近更新
2026-06-24
Stars
★ 67
Forks
24

03 SKILL.md 正文

Tauri Auto-Updater

cargo add tauri-plugin-updater
npm install @tauri-apps/plugin-updater

Check & Install Updates

import { check } from "@tauri-apps/plugin-updater";
import { relaunch } from "@tauri-apps/plugin-process";
const update = await check();
if (update) {
    await update.downloadAndInstall();
    await relaunch();
}

Config

{ "plugins": { "updater": {
    "endpoints": ["https://releases.myapp.com/{{target}}/{{arch}}/{{current_version}}"],
    "pubkey": "YOUR_PUBLIC_KEY" } } }

Generate Keys

npm run tauri signer generate -- -w ~/.tauri/myapp.key

04 同仓库更多 Skills