chore: autoUpdater mihomo-party -> clash-party

This commit is contained in:
Memory 2025-09-10 11:25:35 +08:00 committed by GitHub
parent e03d519371
commit 75762c1263
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,11 +57,11 @@ export async function downloadAndInstallUpdate(version: string): Promise<void> {
const { 'mixed-port': mixedPort = 7890 } = await getControledMihomoConfig()
const baseUrl = `https://github.com/mihomo-party-org/mihomo-party/releases/download/v${version}/`
const fileMap = {
'win32-x64': `mihomo-party-windows-${version}-x64-setup.exe`,
'win32-ia32': `mihomo-party-windows-${version}-ia32-setup.exe`,
'win32-arm64': `mihomo-party-windows-${version}-arm64-setup.exe`,
'darwin-x64': `mihomo-party-macos-${version}-x64.pkg`,
'darwin-arm64': `mihomo-party-macos-${version}-arm64.pkg`
'win32-x64': `clash-party-windows-${version}-x64-setup.exe`,
'win32-ia32': `clash-party-windows-${version}-ia32-setup.exe`,
'win32-arm64': `clash-party-windows-${version}-arm64-setup.exe`,
'darwin-x64': `clash-party-macos-${version}-x64.pkg`,
'darwin-arm64': `clash-party-macos-${version}-arm64.pkg`
}
let file = fileMap[`${process.platform}-${process.arch}`]
if (isPortable()) {
@ -168,4 +168,4 @@ export async function downloadAndInstallUpdate(version: string): Promise<void> {
rm(path.join(dataDir(), file))
throw e
}
}
}