Use correct new download links

This commit is contained in:
Winston
2025-09-30 16:37:39 +02:00
committed by GitHub
parent 2132707b5b
commit 2ae2a776a4
2 changed files with 6 additions and 8 deletions

View File

@@ -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"

View File

@@ -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}"