From 85754d0590ec8af074462c40c331d622f01c9e37 Mon Sep 17 00:00:00 2001 From: DavidCooperWCU Date: Thu, 20 Aug 2026 07:00:53 -0400 Subject: [PATCH] GDScript : allow multiple architectures for linux --- pretext/lib/godot_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pretext/lib/godot_helper.py b/pretext/lib/godot_helper.py index 6ad09ec23..bc1d7479d 100644 --- a/pretext/lib/godot_helper.py +++ b/pretext/lib/godot_helper.py @@ -204,8 +204,10 @@ def _cached_binary_path() -> str | None: candidate = os.path.join(CACHE_DIR, "Godot_v{}_win64.exe".format(GODOT_VERSION_TAG)) else: + machine = platform.machine().lower() + arch = "arm64" if machine in ("aarch64", "arm64") else "x86_64" candidate = os.path.join(CACHE_DIR, - "Godot_v{}_linux.x86_64".format(GODOT_VERSION_TAG)) + "Godot_v{}_linux.{}".format(GODOT_VERSION_TAG, arch)) return candidate if os.path.exists(candidate) else None