This commit is contained in:
2026-03-09 11:26:01 +08:00
parent ab645588ac
commit 1d9e0bb145
2 changed files with 10 additions and 0 deletions

View File

@@ -69,6 +69,15 @@ export function useUpdate() {
error.value = err.message
status.value = 'error'
}))
// macOS 手动安装提示
if (api.onUpdateManualInstall) {
unsubList.push(api.onUpdateManualInstall((info) => {
console.log('macOS 需要手动安装更新:', info.path)
// 显示提示让用户知道需要手动安装
alert(`更新已下载完成!\n\n请手动安装更新文件:\n${info.path}\n\n应用将退出。`)
}))
}
}
onMounted(() => {