feat(Ipc): add architecture information and update check logic for Windows arm64

This commit is contained in:
kangfenmao
2025-04-12 20:42:20 +08:00
parent 8b95a131ec
commit fa19f41385
3 changed files with 21 additions and 1 deletions
@@ -2,6 +2,7 @@ import { GithubOutlined } from '@ant-design/icons'
import { FileProtectOutlined, GlobalOutlined, MailOutlined, SoundOutlined } from '@ant-design/icons'
import IndicatorLight from '@renderer/components/IndicatorLight'
import { HStack } from '@renderer/components/Layout'
import { isWindows } from '@renderer/config/constant'
import { APP_NAME, AppLogo } from '@renderer/config/env'
import { useTheme } from '@renderer/context/ThemeProvider'
import { useMinappPopup } from '@renderer/hooks/useMinappPopup'
@@ -33,6 +34,13 @@ const AboutSettings: FC = () => {
const onCheckUpdate = debounce(
async () => {
const { arch } = await window.api.getAppInfo()
if (isWindows && arch.includes('arm')) {
window.open('https://cherry-ai.com/download', '_blank')
return
}
if (update.checking || update.downloading) {
return
}
+1
View File
@@ -237,6 +237,7 @@ export type AppInfo = {
resourcesPath: string
filesPath: string
logsPath: string
arch: string
}
export interface Shortcut {