chore: 版本号 0.1.0 → 0.9.0-beta.1 + updater 插件预留
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- package.json / tauri.conf.json: version 更新为 0.9.0-beta.1
- tauri.conf.json: 添加 plugins.updater 空壳配置 + createUpdaterArtifacts
- Cargo.toml: 添加 tauri-plugin-updater 依赖
- lib.rs: 注册 updater 插件 (空壳,部署时配置 HTTPS 端点 + Ed25519 密钥)
This commit is contained in:
iven
2026-04-11 03:02:39 +08:00
parent 5e937d0ce2
commit 33008c06c7
4 changed files with 13 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "desktop",
"private": true,
"version": "0.1.0",
"version": "0.9.0-beta.1",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -36,6 +36,7 @@ zclaw-protocols = { workspace = true }
# Tauri
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
tauri-plugin-updater = "2"
# MCP debug plugin (dev-only, allows AI agents to interact with the app)
tauri-plugin-mcp = { git = "https://github.com/P3GLEG/tauri-plugin-mcp" }

View File

@@ -147,7 +147,8 @@ pub fn run() {
let classroom_gen_tasks = classroom_commands::create_generation_tasks();
let mut builder = tauri::Builder::default()
.plugin(tauri_plugin_opener::init());
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_updater::Builder::new().build());
// MCP debug plugin — only in debug builds, allows AI agents to interact with the app
#[cfg(debug_assertions)]

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "ZCLAW",
"version": "0.1.0",
"version": "0.9.0-beta.1",
"identifier": "com.zclaw.desktop",
"build": {
"beforeDevCommand": "pnpm dev",
@@ -33,6 +33,13 @@
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
],
"createUpdaterArtifacts": "v2Compatible"
},
"plugins": {
"updater": {
"endpoints": [],
"pubkey": ""
}
}
}