From 6c8851a633713a948c0dcecdeeb336f1a8105ae5 Mon Sep 17 00:00:00 2001 From: Winston <44872771+winston-yallow@users.noreply.github.com> Date: Mon, 29 Sep 2025 16:40:04 +0200 Subject: [PATCH] Improve downloads --- _plugins/make_download.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/_plugins/make_download.rb b/_plugins/make_download.rb index 045d48c2b9..7fedd25730 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}"