diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx index 281b613d68..b3dbebd04c 100644 --- a/packages/desktop/src/index.tsx +++ b/packages/desktop/src/index.tsx @@ -83,7 +83,7 @@ const platform: Platform = { update: async () => { if (!UPDATER_ENABLED || !update) return - if(ostype() === "windows") await invoke("kill_sidecar") + if (ostype() === "windows") await invoke("kill_sidecar") await update.install() }, diff --git a/packages/desktop/src/updater.ts b/packages/desktop/src/updater.ts index 2c58322a4d..4753ee6639 100644 --- a/packages/desktop/src/updater.ts +++ b/packages/desktop/src/updater.ts @@ -35,7 +35,7 @@ export async function runUpdater({ alertOnFail }: { alertOnFail: boolean }) { if (!shouldUpdate) return try { - if(ostype() === "windows") await invoke("kill_sidecar") + if (ostype() === "windows") await invoke("kill_sidecar") await update.install() } catch { await message("Failed to install update", { title: "Update Failed" })