From c4d58ce508fe6f4c3eba6205de19060e687b048d Mon Sep 17 00:00:00 2001 From: Jamie Date: Tue, 5 Mar 2024 18:40:22 -0500 Subject: [PATCH] Migrate the downloads to suyu gitlab --- CMakeModules/DownloadExternals.cmake | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeModules/DownloadExternals.cmake b/CMakeModules/DownloadExternals.cmake index 01f366f831..27291b7b2d 100644 --- a/CMakeModules/DownloadExternals.cmake +++ b/CMakeModules/DownloadExternals.cmake @@ -7,17 +7,18 @@ # prefix_var: name of a variable which will be set with the path to the extracted contents function(download_bundled_external remote_path lib_name prefix_var) -set(package_base_url "https://github.com/yuzu-mirror/") +set(package_base_url "https://gitlab.com/suyu2/") set(package_repo "no_platform") set(package_extension "no_platform") +set(package_head "?ref_type=heads") if (WIN32) - set(package_repo "ext-windows-bin/raw/master/") + set(package_repo "ext-windows-bin/-/blob/master/") set(package_extension ".7z") elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") - set(package_repo "ext-linux-bin/raw/main/") + set(package_repo "ext-linux-bin/-/blob/master/") set(package_extension ".tar.xz") elseif (ANDROID) - set(package_repo "ext-android-bin/raw/main/") + set(package_repo "ext-android-bin/-/blob/master/") set(package_extension ".tar.xz") else() message(FATAL_ERROR "No package available for this platform") @@ -28,7 +29,7 @@ set(prefix "${CMAKE_BINARY_DIR}/externals/${lib_name}") if (NOT EXISTS "${prefix}") message(STATUS "Downloading binaries for ${lib_name}...") file(DOWNLOAD - ${package_url}${remote_path}${lib_name}${package_extension} + ${package_url}${remote_path}${lib_name}${package_extension}${package_head} "${CMAKE_BINARY_DIR}/externals/${lib_name}${package_extension}" SHOW_PROGRESS) execute_process(COMMAND ${CMAKE_COMMAND} -E tar xf "${CMAKE_BINARY_DIR}/externals/${lib_name}${package_extension}" WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/externals")