From 2ae2a776a48712e94115034a560026ab65e14e20 Mon Sep 17 00:00:00 2001 From: Winston <44872771+winston-yallow@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:37:39 +0200 Subject: [PATCH] Use correct new download links --- _data/mirrorlist_configs.yml | 4 ++-- _plugins/make_download.rb | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/_data/mirrorlist_configs.yml b/_data/mirrorlist_configs.yml index 7dea2e16f9..3d25be1c73 100644 --- a/_data/mirrorlist_configs.yml +++ b/_data/mirrorlist_configs.yml @@ -1,8 +1,8 @@ hosts: - name: "github" - title: "Official GitHub Releases mirror" + title: "Official Releases mirror" - name: "github_builds" - title: "Official GitHub Releases mirror" + title: "Official Releases mirror" defaults: - name: "4.5" diff --git a/_plugins/make_download.rb b/_plugins/make_download.rb index 045d48c2b9..5845170190 100644 --- a/_plugins/make_download.rb +++ b/_plugins/make_download.rb @@ -3,8 +3,7 @@ # See `_data/download_configs.yml` for a reference table of slugs. HOST_TUXFAMILY = "https://downloads.tuxfamily.org/godotengine" -HOST_GITHUB = "https://github.com/godotengine/godot/releases/download" -HOST_GITHUB_BUILDS = "https://github.com/godotengine/godot-builds/releases/download" +HOST_HETZNER = "https://downloads.godotengine.org/" FLAVOR_MATRIX = { "dev" => 1, @@ -105,10 +104,9 @@ module MakeDownloadFilter end end - if host == "github" - return "#{HOST_GITHUB}/#{version_name}-#{version_flavor}/#{download_file}" - elsif host == "github_builds" - return "#{HOST_GITHUB_BUILDS}/#{version_name}-#{version_flavor}/#{download_file}" + if host == "github" or host == "github_builds" + # Use our custom download API that supports all github builds but will prefer S3 downloads + return "#{HOST_HETZNER}?version=#{version_name}&flavor=#{version_flavor}&slug=#{download_slug}&platform=#{platform}" elsif host == "tuxfamily" if version_flavor == "stable" return "#{HOST_TUXFAMILY}/#{version_name}#{mono_slug}/#{download_file}"