From 53d2d16bdb9785e94a867220ef675bb4a99349c6 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 21 Jul 2023 22:08:45 +0800 Subject: [PATCH 1/3] wip Signed-off-by: Mior Muhammad Zaki --- src/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.php b/src/helpers.php index 8eb065f..b1cda6f 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,4 +1,4 @@ - Date: Fri, 21 Jul 2023 22:35:40 +0800 Subject: [PATCH 2/3] wip Signed-off-by: Mior Muhammad Zaki --- src/Command.php | 4 +--- src/OperatingSystem.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Command.php b/src/Command.php index 3d41859..e5237f6 100644 --- a/src/Command.php +++ b/src/Command.php @@ -110,8 +110,6 @@ protected function resolveDownloadUrl(string $version, string $slug): string if (version_compare($version, '113.0', '<')) { if ($slug == 'mac_arm64' && version_compare($version, '106.0.5249', '<')) { $slug == 'mac64_m1'; - } elseif ($slug === 'win64') { - $slug = 'win'; } return sprintf('https://chromedriver.storage.googleapis.com/%s/chromedriver_%s.zip', $version, $slug); @@ -121,7 +119,7 @@ protected function resolveDownloadUrl(string $version, string $slug): string $slugs = [ 'mac64' => 'mac-x64', - 'mac_arm64' => 'mac-x64', + 'mac_arm64' => 'mac-arm64', ]; $slug = $slugs[$slug] ?? $slug; diff --git a/src/OperatingSystem.php b/src/OperatingSystem.php index 1d27444..14a4b10 100644 --- a/src/OperatingSystem.php +++ b/src/OperatingSystem.php @@ -12,7 +12,7 @@ class OperatingSystem public static function id() { if (static::onWindows()) { - return \defined('PHP_INT_SIZE') && PHP_INT_SIZE === 8 ? 'win64' : 'win'; + return 'win'; } elseif (static::onMac()) { return static::macArchitectureId(); } From 7c6a48d523ae9004987247b0233dfca83f6b8544 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 21 Jul 2023 22:51:47 +0800 Subject: [PATCH 3/3] Prepare 1.6.2 release Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-1.x.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG-1.x.md b/CHANGELOG-1.x.md index 0bf7be5..23e512e 100644 --- a/CHANGELOG-1.x.md +++ b/CHANGELOG-1.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/dusk-updater`. +## 1.6.2 + +Released: 2023-07-21 + +### Fixes + +* Fixes `mac_arm64` and remove `win64` platform name. + ## 1.6.1 Released: 2023-07-21