diff --git a/build.sh b/build.sh index 04f0f91..5eb741e 100755 --- a/build.sh +++ b/build.sh @@ -67,23 +67,23 @@ if [ x"${USE_CHINA_MIRROR}" = x1 ]; then if [ -f "/etc/apt/sources.list.d/ubuntu.sources" ]; then cat >/etc/apt/sources.list.d/ubuntu.sources </etc/apt/sources.list <(.+).*@\1@'" \| head -1)" ninja_binary_url="https://github.com/ninja-build/ninja/releases/download/${ninja_ver}/ninja-linux.zip" if [ x"${USE_CHINA_MIRROR}" = x1 ]; then - ninja_binary_url="https://ghp.ci/${ninja_binary_url}" + ninja_binary_url="https://ghfast.top/${ninja_binary_url}" fi if [ ! -f "${DOWNLOADS_DIR}/ninja-${ninja_ver}-linux.zip" ]; then rm -f "${DOWNLOADS_DIR}/ninja-${ninja_ver}-linux.zip.part" @@ -210,7 +210,7 @@ prepare_zlib() { zlib_ng_latest_tag="$(retry wget -qO- --compression=auto https://api.github.com/repos/zlib-ng/zlib-ng/releases \| jq -r "'.[0].tag_name'")" zlib_ng_latest_url="https://github.com/zlib-ng/zlib-ng/archive/refs/tags/${zlib_ng_latest_tag}.tar.gz" if [ x"${USE_CHINA_MIRROR}" = x1 ]; then - zlib_ng_latest_url="https://ghp.ci/${zlib_ng_latest_url}" + zlib_ng_latest_url="https://ghfast.top/${zlib_ng_latest_url}" fi if [ ! -f "${DOWNLOADS_DIR}/zlib-ng-${zlib_ng_latest_tag}.tar.gz" ]; then retry wget -cT10 -O "${DOWNLOADS_DIR}/zlib-ng-${zlib_ng_latest_tag}.tar.gz.part" "${zlib_ng_latest_url}" @@ -264,7 +264,7 @@ prepare_xz() { # xz_archive_name="$(printf '%s' "${xz_release_info}" | jq -r '.assets[].name | select(endswith("tar.xz"))')" # xz_latest_url="https://github.com/tukaani-project/xz/releases/download/${xz_tag}/${xz_archive_name}" # if [ x"${USE_CHINA_MIRROR}" = x1 ]; then - # xz_latest_url="https://ghp.ci/${xz_latest_url}" + # xz_latest_url="https://ghfast.top/${xz_latest_url}" # fi # Download from sourceforge xz_tag="$(retry wget -qO- --compression=auto https://sourceforge.net/projects/lzmautils/files/ \| grep -i \'span class=\"sub-label\"\' \| head -1 \| sed -r "'s/.*xz-(.+)\.tar\.gz.*/\1/'")" @@ -313,7 +313,7 @@ prepare_ssl() { openssl_ver="$(echo "${openssl_filename}" | sed -r 's/openssl-(.+)\.tar\.gz/\1/')" openssl_latest_url="https://github.com/openssl/openssl/releases/download/openssl-${openssl_ver}/${openssl_filename}" if [ x"${USE_CHINA_MIRROR}" = x1 ]; then - openssl_latest_url="https://ghp.ci/${openssl_latest_url}" + openssl_latest_url="https://ghfast.top/${openssl_latest_url}" fi if [ ! -f "${DOWNLOADS_DIR}/openssl-${openssl_ver}.tar.gz" ]; then retry wget -cT10 -O "${DOWNLOADS_DIR}/openssl-${openssl_ver}.tar.gz.part" "${openssl_latest_url}" @@ -353,7 +353,7 @@ prepare_sqlite() { sqlite_tag="$(retry wget -qO- --compression=auto https://www.sqlite.org/index.html \| sed -nr "'s/.*>Version (.+)<.*/\1/p'")" sqlite_latest_url="https://github.com/sqlite/sqlite/archive/release.tar.gz" if [ x"${USE_CHINA_MIRROR}" = x1 ]; then - sqlite_latest_url="https://ghp.ci/${sqlite_latest_url}" + sqlite_latest_url="https://ghfast.top/${sqlite_latest_url}" fi if [ ! -f "${DOWNLOADS_DIR}/sqlite-${sqlite_tag}.tar.gz" ]; then retry wget -cT10 -O "${DOWNLOADS_DIR}/sqlite-${sqlite_tag}.tar.gz.part" "${sqlite_latest_url}" @@ -378,7 +378,7 @@ prepare_c_ares() { cares_ver="${cares_latest_tag#v}" cares_latest_url="https://github.com/c-ares/c-ares/releases/download/${cares_latest_tag}/c-ares-${cares_ver}.tar.gz" if [ x"${USE_CHINA_MIRROR}" = x1 ]; then - cares_latest_url="https://ghp.ci/${cares_latest_url}" + cares_latest_url="https://ghfast.top/${cares_latest_url}" fi if [ ! -f "${DOWNLOADS_DIR}/c-ares-${cares_ver}.tar.gz" ]; then retry wget -cT10 -O "${DOWNLOADS_DIR}/c-ares-${cares_ver}.tar.gz.part" "${cares_latest_url}" @@ -436,7 +436,7 @@ build_aria2() { aria2_latest_url="https://github.com/aria2/aria2/archive/master.tar.gz" fi if [ x"${USE_CHINA_MIRROR}" = x1 ]; then - aria2_latest_url="https://ghp.ci/${aria2_latest_url}" + aria2_latest_url="https://ghfast.top/${aria2_latest_url}" fi if [ ! -f "${DOWNLOADS_DIR}/aria2-${aria2_tag}.tar.gz" ]; then