fix: 简化包安装检查逻辑并添加二次确认

移除复杂的ACE环境检查逻辑,仅保留基本的dpkg检查
在App.vue中添加二次确认步骤以确保包真实安装
This commit is contained in:
2026-04-15 23:40:30 +08:00
parent f9aa31d257
commit 9eb141ee35
3 changed files with 10477 additions and 41 deletions
+9
View File
@@ -835,6 +835,15 @@ const refreshInstalledApps = async () => {
continue;
}
// 二次确认:使用 check-installed 验证包是否真正安装
const isReallyInstalled = await window.ipcRenderer.invoke(
"check-installed",
{ pkgname: app.pkgname, origin: app.origin },
);
if (!isReallyInstalled) {
continue;
}
if (appInfo) {
appInfo.flags = app.flags;
appInfo.arch = app.arch;