From 83e822ab4ee890a32cf32efe9ddbd65001e69699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Mon, 5 Jan 2026 00:16:35 +0100 Subject: [PATCH] fix --- src/utils.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index b1d6b8c..3524c47 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -43,7 +43,10 @@ export function getPlatform(): string { } export function getArchitecture(os: string, arch: string): string { - if (os === "windows" && (arch === "aarch64" || arch === "arm64")) { + if ( + (os === "win32" || os === "windows") && + (arch === "aarch64" || arch === "arm64") + ) { warning( [ "⚠️ Bun does not provide native arm64 builds for Windows.", @@ -62,7 +65,10 @@ export function getArchitecture(os: string, arch: string): string { export function getAvx2(os: string, arch: string, avx2?: boolean): boolean { // Temporary workaround for absence of arm64 builds on Windows (#130) - if (os === "win32" && (arch === "aarch64" || arch === "arm64")) { + if ( + (os === "win32" || os === "windows") && + (arch === "aarch64" || arch === "arm64") + ) { return false; }