mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
chore: autoUpdater mihomo-party -> clash-party
This commit is contained in:
parent
e03d519371
commit
75762c1263
@ -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()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user