From 680aa0609d1db2173c9f327180a101e76bab8102 Mon Sep 17 00:00:00 2001 From: Vincenzo Petrucci Date: Wed, 8 Nov 2023 16:43:09 +0100 Subject: [PATCH] Force amd64 arch on windows --- src/K6.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/K6.php b/src/K6.php index dcede32..443c256 100644 --- a/src/K6.php +++ b/src/K6.php @@ -131,10 +131,14 @@ private static function extractZip(string $fileName): void } /** - * Returns the computer's architecture. + * Returns the computer's architecture. Force amd64 on windows */ private static function arch(): string { + if(self::os() === 'windows') { + return 'amd64'; + } + return str_contains(php_uname('m'), 'arm') ? 'arm64' : 'amd64'; }