From 6f49bbdd410c5c69cee618874f0e197a976c7d5d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 19 Dec 2025 18:13:15 +0100 Subject: [PATCH] fix: Updater not detecting architecture on Windows correctly --- main/updater/source/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/updater/source/main.cpp b/main/updater/source/main.cpp index 13b48b25a..539c49fb5 100644 --- a/main/updater/source/main.cpp +++ b/main/updater/source/main.cpp @@ -102,12 +102,12 @@ std::optional downloadUpdate(const std::string &url) { return filePath; } -#if defined(__x86_64__) +#if defined(__x86_64__) || defined(_X86_) || defined(_AMD64_) #define ARCH_DEPENDENT(x86_64, arm64) x86_64 -#elif defined(__arm64__) +#elif defined(__arm64__) || defined(_ARM64_) #define ARCH_DEPENDENT(x86_64, arm64) arm64 #else - #define ARCH_DEPENDENT(x86_64, arm64) "" + #error "Unsupported architecture for updater" #endif std::string_view getUpdateArtifactEnding() {