feat(updater): add support for multiple Linux package formats and Windows NSIS installers

This commit is contained in:
oomeow
2026-06-09 17:23:25 +08:00
parent ee7f66f49c
commit 97bd5a1f1f
2 changed files with 111 additions and 29 deletions
+3 -1
View File
@@ -145,7 +145,9 @@ export const getIpInfo = async (): Promise<
const maxRetries = 2
const serviceTimeout = 5000
const shuffledServices = IP_CHECK_SERVICES.slice().sort(() => Math.random() - 0.5)
const shuffledServices = IP_CHECK_SERVICES.slice().sort(
() => Math.random() - 0.5,
)
let lastError: unknown | null = null
const userAgent = await getUserAgentPromise()
console.debug('User-Agent for IP detection:', userAgent)