- 添加 tauri-plugin-updater / tauri-plugin-process Rust 依赖 - 注册 updater 和 process 插件到 Tauri 构建器 - 配置 tauri.conf.json 更新器端点与公钥占位 - 添加 @tauri-apps/plugin-updater / plugin-process npm 依赖 - 创建 useUpdater composable(静默检查、手动检查、下载进度、安装重启) - 在 AppLayout 标题栏集成更新交互 UI(下载按钮、进度条、安装状态) - 添加 .pnpm-store 到 .gitignore
29 lines
655 B
JSON
29 lines
655 B
JSON
{
|
|
"name": "mqttx",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vue-tsc --noEmit && vite build",
|
|
"preview": "vite preview",
|
|
"tauri": "tauri"
|
|
},
|
|
"dependencies": {
|
|
"@element-plus/icons-vue": "^2.3.2",
|
|
"@tauri-apps/api": "^2",
|
|
"@tauri-apps/plugin-opener": "^2",
|
|
"@tauri-apps/plugin-process": "^2",
|
|
"@tauri-apps/plugin-updater": "^2",
|
|
"element-plus": "^2.14.4",
|
|
"vue": "^3.5.13"
|
|
},
|
|
"devDependencies": {
|
|
"@tauri-apps/cli": "^2",
|
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
"typescript": "~6.0.3",
|
|
"vite": "^8.0.16",
|
|
"vue-tsc": "^3.3.5"
|
|
}
|
|
}
|