mirror of
https://github.com/godotengine/godot-website.git
synced 2025-12-31 09:48:43 +03:00
Use correct new download links
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user