diff --git a/electron/main/backend/install-manager.ts b/electron/main/backend/install-manager.ts index 949f123f..41d13ddd 100644 --- a/electron/main/backend/install-manager.ts +++ b/electron/main/backend/install-manager.ts @@ -182,7 +182,11 @@ ipcMain.on("queue-install", async (event, download_json) => { execParams.push(SHELL_CALLER_PATH); if (metalinkUrl && filename) { - execParams.push("ssinstall", `${downloadDir}/${filename}`, "--delete-after-install"); + execParams.push( + "ssinstall", + `${downloadDir}/${filename}`, + "--delete-after-install", + ); } else { execParams.push("aptss", "install", "-y", pkgname); } @@ -190,7 +194,11 @@ ipcMain.on("queue-install", async (event, download_json) => { execCommand = SHELL_CALLER_PATH; if (metalinkUrl && filename) { - execParams.push("ssinstall", `${downloadDir}/${filename}`, "--delete-after-install"); + execParams.push( + "ssinstall", + `${downloadDir}/${filename}`, + "--delete-after-install", + ); } else { execParams.push("aptss", "install", "-y", pkgname); } @@ -439,7 +447,11 @@ ipcMain.handle("check-installed", async (_event, pkgname: string) => { // 如果脚本不存在或检测不到,使用 dpkg-query 作为后备 logger.info(`尝试使用 dpkg-query 检测: ${pkgname}`); - const { code } = await runCommandCapture("dpkg-query", ["-W", "-f='${Status}'", pkgname]); + const { code } = await runCommandCapture("dpkg-query", [ + "-W", + "-f='${Status}'", + pkgname, + ]); if (code === 0) { isInstalled = true; diff --git a/electron/main/index.ts b/electron/main/index.ts index f5474054..f496ece7 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -164,7 +164,8 @@ ipcMain.handle("run-update-tool", async () => { ipcMain.handle("open-install-settings", async () => { try { const { spawn } = await import("node:child_process"); - const scriptPath = "/opt/durapps/spark-store/bin/update-upgrade/ss-update-controler.sh"; + const scriptPath = + "/opt/durapps/spark-store/bin/update-upgrade/ss-update-controler.sh"; const child = spawn("/opt/spark-store/extras/host-spawn", [scriptPath], { detached: true, stdio: "ignore", diff --git a/src/App.vue b/src/App.vue index 1f7057aa..9df7e64e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -180,7 +180,7 @@ const axiosInstance = axios.create({ timeout: 5000, // 增加到 5 秒,避免网络波动导致的超时 }); -const fetchWithRetry = async ( +const fetchWithRetry = async ( url: string, retries = 3, delay = 1000, @@ -422,7 +422,8 @@ const loadHome = async () => { if (realRes.ok) { const realApp = await realRes.json(); // 用真实json的filename字段和More字段来增补和覆盖当前的json - if (realApp.Filename) baseApp.filename = realApp.Filename; + if (realApp.Filename) + baseApp.filename = realApp.Filename; if (realApp.More) baseApp.more = realApp.More; if (realApp.Name) baseApp.name = realApp.Name; } diff --git a/src/components/AppDetailModal.vue b/src/components/AppDetailModal.vue index ff578346..eb95b54f 100644 --- a/src/components/AppDetailModal.vue +++ b/src/components/AppDetailModal.vue @@ -21,15 +21,15 @@
- icon + icon
diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 2941a683..27503536 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -10,7 +10,11 @@ > - +
@@ -29,8 +33,12 @@
-
- 共 {{ appsCount }} 个应用 +
+ 共 {{ appsCount }} 个应用
diff --git a/src/components/HomeView.vue b/src/components/HomeView.vue index ba95fd96..98f154c1 100644 --- a/src/components/HomeView.vue +++ b/src/components/HomeView.vue @@ -1,6 +1,8 @@