From 90ecda95a8fdabf7e8dd2a4719aa31377ae667d9 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Tue, 10 Feb 2026 12:43:11 -0700 Subject: [PATCH] Add support for 'x64' and 'arm64' instead of their names used in Tauri --- src/routes/launcher/versions.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/routes/launcher/versions.ts b/src/routes/launcher/versions.ts index a682b62..08ca496 100644 --- a/src/routes/launcher/versions.ts +++ b/src/routes/launcher/versions.ts @@ -20,8 +20,9 @@ export const handler = async (context: Context) => { let platString = null if (!showAll) { if (platform == 'windows') { - if (arch == 'x86_64') platString = 'windows' - else if (arch == 'aarch64') platString = 'windows-arm64' + if (arch == 'x86_64' || arch == 'x64') platString = 'windows' + else if (arch == 'aarch64' || arch == 'arm64') + platString = 'windows-arm64' else { connection.end() return jsonResponse( @@ -34,7 +35,7 @@ export const handler = async (context: Context) => { ) } } else if (platform == 'linux') { - if (arch == 'x86_64') platString = 'linux' + if (arch == 'x86_64' || arch == 'x64') platString = 'linux' else { connection.end() return jsonResponse( @@ -47,7 +48,8 @@ export const handler = async (context: Context) => { ) } } else if (platform == 'macos') { - if (arch == 'x86_64' || arch == 'aarch64') platString = 'macos' + if (arch == 'x86_64' || arch == 'x64') platString = 'macos' + else if (arch == 'aarch64' || arch == 'arm64') platString = 'macos' else { connection.end() return jsonResponse(