From facb9965ded293aa43b69b1069fc457cf2b38a4a Mon Sep 17 00:00:00 2001 From: a-maurice Date: Mon, 15 Sep 2025 12:59:33 -0700 Subject: [PATCH 1/2] Update the Unity Hub mac installer to arm64 --- gha/unity/unity_installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gha/unity/unity_installer.py b/gha/unity/unity_installer.py index 80cf2d691..344f6afae 100644 --- a/gha/unity/unity_installer.py +++ b/gha/unity/unity_installer.py @@ -90,7 +90,7 @@ # Used for downloading Unity Hub "unity_hub_url": { WINDOWS: "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe", - MACOS: "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.dmg", + MACOS: "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup-arm64.dmg", LINUX: "", }, # Unity Hub will be installed at this location From 85e734dc18c8ed9cd364be7811db4a127669ea75 Mon Sep 17 00:00:00 2001 From: a-maurice Date: Mon, 15 Sep 2025 14:26:28 -0700 Subject: [PATCH 2/2] Update unity_installer.py --- gha/unity/unity_installer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gha/unity/unity_installer.py b/gha/unity/unity_installer.py index 344f6afae..f619024eb 100644 --- a/gha/unity/unity_installer.py +++ b/gha/unity/unity_installer.py @@ -86,11 +86,13 @@ SUPPORTED_PLATFORMS = (ANDROID, IOS, TVOS, WINDOWS, MACOS, LINUX, PLAYMODE) UNITY_VERSION_PLACEHOLDER = "unity_version_placeholder" +UNITY_HUB_URL_ARM_MAC = "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup-arm64.dmg" SETTINGS = { # Used for downloading Unity Hub "unity_hub_url": { WINDOWS: "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe", - MACOS: "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup-arm64.dmg", + # Note that this is for x86 architecture. UNITY_HUB_URL_ARM_MAC above is used for arm64 + MACOS: "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.dmg", LINUX: "", }, # Unity Hub will be installed at this location @@ -276,6 +278,9 @@ def install_unity_hub(): runner_os = get_os() unity_hub_url = SETTINGS["unity_hub_url"][runner_os] if unity_hub_url: + # Use the overriden version if running on a Mac arm64 machine + if platform.system() == 'Darwin' and 'arm' in platform.machine().lower(): + unity_hub_url = UNITY_HUB_URL_ARM_MAC unity_hub_installer = path.basename(unity_hub_url) download_unity_hub(unity_hub_url, unity_hub_installer, max_attempts=MAX_ATTEMPTS) if runner_os == MACOS: