mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-11 17:16:16 -10:00
chore: generate
This commit is contained in:
1 parent
c20f2731ab
commit
f4cd708ca0
2 files changed
+2
-2
No files matched your search
@@ -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()
|
||||
},
|
||||
|
||||
|
||||
@@ -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" })
|
||||
|
||||
Reference in new issue
Block a user