diff --git a/src/hooks/useUpdateProgress.ts b/src/hooks/useUpdateProgress.ts index a4646414..97b6a0d8 100644 --- a/src/hooks/useUpdateProgress.ts +++ b/src/hooks/useUpdateProgress.ts @@ -13,11 +13,6 @@ export default function useUpdateProgress(onComplete: () => void, onError: (e: { }, []) const update = useCallback(async () => { - if (window.PLATFORM === "darwin") { - window.open("https://github.com/OpenAgentPlatform/Dive/releases/latest", "_blank") - return - } - const autoDownload = getAutoDownload() if (autoDownload || progress >= 100) { window.ipcRenderer.invoke("quit-and-install") diff --git a/src/updater.tsx b/src/updater.tsx index bf2beda4..38055fb3 100644 --- a/src/updater.tsx +++ b/src/updater.tsx @@ -17,7 +17,7 @@ export default function Updater() { newVersion.current = arg.newVersion const autoDownload = getAutoDownload() - if (window.PLATFORM !== "darwin" && autoDownload) { + if (autoDownload) { window.ipcRenderer.invoke("start-download") return }