fix: Updater not detecting architecture on Windows correctly

(cherry picked from commit 6f49bbdd41)
This commit is contained in:
WerWolv
2025-12-19 18:13:15 +01:00
parent a3cd6e6a40
commit 8b84c47b73

View File

@@ -102,12 +102,12 @@ std::optional<std::fs::path> 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() {