chore: generate
This commit is contained in:
parent
c20f2731ab
commit
f4cd708ca0
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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" })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue