GitHub Action 3 месяцев назад
Родитель
Сommit
f4cd708ca0
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      packages/desktop/src/index.tsx
  2. 1 1
      packages/desktop/src/updater.ts

+ 1 - 1
packages/desktop/src/index.tsx

@@ -83,7 +83,7 @@ const platform: Platform = {
 
 
   update: async () => {
   update: async () => {
     if (!UPDATER_ENABLED || !update) return
     if (!UPDATER_ENABLED || !update) return
-    if(ostype() === "windows") await invoke("kill_sidecar")
+    if (ostype() === "windows") await invoke("kill_sidecar")
     await update.install()
     await update.install()
   },
   },
 
 

+ 1 - 1
packages/desktop/src/updater.ts

@@ -35,7 +35,7 @@ export async function runUpdater({ alertOnFail }: { alertOnFail: boolean }) {
   if (!shouldUpdate) return
   if (!shouldUpdate) return
 
 
   try {
   try {
-    if(ostype() === "windows") await invoke("kill_sidecar")
+    if (ostype() === "windows") await invoke("kill_sidecar")
     await update.install()
     await update.install()
   } catch {
   } catch {
     await message("Failed to install update", { title: "Update Failed" })
     await message("Failed to install update", { title: "Update Failed" })