Committed by
GitHub
Add --continue to wget (#750)
Also, switch to github mirror
正在显示
6 个修改的文件
包含
13 行增加
和
7 行删除
| @@ -8,11 +8,17 @@ cd $dir | @@ -8,11 +8,17 @@ cd $dir | ||
| 8 | onnxruntime_version=1.17.1 | 8 | onnxruntime_version=1.17.1 |
| 9 | onnxruntime_dir=ios-onnxruntime/$onnxruntime_version | 9 | onnxruntime_dir=ios-onnxruntime/$onnxruntime_version |
| 10 | 10 | ||
| 11 | +SHERPA_ONNX_GITHUB=github.com | ||
| 12 | + | ||
| 13 | +if [ "$SHERPA_ONNX_GITHUB_MIRROW" == true ]; then | ||
| 14 | + SHERPA_ONNX_GITHUB=hub.nuaa.cf | ||
| 15 | +fi | ||
| 16 | + | ||
| 11 | if [ ! -f $onnxruntime_dir/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then | 17 | if [ ! -f $onnxruntime_dir/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then |
| 12 | mkdir -p $onnxruntime_dir | 18 | mkdir -p $onnxruntime_dir |
| 13 | pushd $onnxruntime_dir | 19 | pushd $onnxruntime_dir |
| 14 | - rm -f onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 | ||
| 15 | - wget https://github.com/csukuangfj/onnxruntime-libs/releases/download/v${onnxruntime_version}/onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 | 20 | +# rm -f onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 |
| 21 | + wget -c https://${SHERPA_ONNX_GITHUB}/csukuangfj/onnxruntime-libs/releases/download/v${onnxruntime_version}/onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 | ||
| 16 | tar xvf onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 | 22 | tar xvf onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 |
| 17 | rm onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 | 23 | rm onnxruntime.xcframework-${onnxruntime_version}.tar.bz2 |
| 18 | cd .. | 24 | cd .. |
| @@ -2,7 +2,7 @@ function(download_asio) | @@ -2,7 +2,7 @@ function(download_asio) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(asio_URL "https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz") | 4 | set(asio_URL "https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz") |
| 5 | - set(asio_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/asio-asio-1-24-0.tar.gz") | 5 | + set(asio_URL2 "https://hub.nuaa.cf/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz") |
| 6 | set(asio_HASH "SHA256=cbcaaba0f66722787b1a7c33afe1befb3a012b5af3ad7da7ff0f6b8c9b7a8a5b") | 6 | set(asio_HASH "SHA256=cbcaaba0f66722787b1a7c33afe1befb3a012b5af3ad7da7ff0f6b8c9b7a8a5b") |
| 7 | 7 | ||
| 8 | # If you don't have access to the Internet, | 8 | # If you don't have access to the Internet, |
| @@ -2,7 +2,7 @@ function(download_cargs) | @@ -2,7 +2,7 @@ function(download_cargs) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(cargs_URL "https://github.com/likle/cargs/archive/refs/tags/v1.0.3.tar.gz") | 4 | set(cargs_URL "https://github.com/likle/cargs/archive/refs/tags/v1.0.3.tar.gz") |
| 5 | - set(cargs_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/cargs-1.0.3.tar.gz") | 5 | + set(cargs_URL2 "https://hub.nuaa.cf/likle/cargs/archive/refs/tags/v1.0.3.tar.gz") |
| 6 | set(cargs_HASH "SHA256=ddba25bd35e9c6c75bc706c126001b8ce8e084d40ef37050e6aa6963e836eb8b") | 6 | set(cargs_HASH "SHA256=ddba25bd35e9c6c75bc706c126001b8ce8e084d40ef37050e6aa6963e836eb8b") |
| 7 | 7 | ||
| 8 | # If you don't have access to the Internet, | 8 | # If you don't have access to the Internet, |
| @@ -2,7 +2,7 @@ function(download_googltest) | @@ -2,7 +2,7 @@ function(download_googltest) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(googletest_URL "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz") | 4 | set(googletest_URL "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz") |
| 5 | - set(googletest_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/googletest-1.13.0.tar.gz") | 5 | + set(googletest_URL2 "https://hub.nuaa.cf/google/googletest/archive/refs/tags/v1.13.0.tar.gz") |
| 6 | set(googletest_HASH "SHA256=ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363") | 6 | set(googletest_HASH "SHA256=ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363") |
| 7 | 7 | ||
| 8 | # If you don't have access to the Internet, | 8 | # If you don't have access to the Internet, |
| @@ -3,7 +3,7 @@ function(download_kaldi_native_fbank) | @@ -3,7 +3,7 @@ function(download_kaldi_native_fbank) | ||
| 3 | 3 | ||
| 4 | set(kaldi_native_fbank_URL "https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.19.1.tar.gz") | 4 | set(kaldi_native_fbank_URL "https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.19.1.tar.gz") |
| 5 | set(kaldi_native_fbank_URL2 "https://hub.nuaa.cf/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.19.1.tar.gz") | 5 | set(kaldi_native_fbank_URL2 "https://hub.nuaa.cf/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.19.1.tar.gz") |
| 6 | - set(kaldi_native_fbank_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/kaldi-native-fbank-1.19.1.tar.gz") | 6 | +# set(kaldi_native_fbank_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/kaldi-native-fbank-1.19.1.tar.gz") |
| 7 | set(kaldi_native_fbank_HASH "SHA256=0cae8cbb9ea42916b214e088912f9e8f2f648f54756b305f93f552382f31f904") | 7 | set(kaldi_native_fbank_HASH "SHA256=0cae8cbb9ea42916b214e088912f9e8f2f648f54756b305f93f552382f31f904") |
| 8 | 8 | ||
| 9 | set(KALDI_NATIVE_FBANK_BUILD_TESTS OFF CACHE BOOL "" FORCE) | 9 | set(KALDI_NATIVE_FBANK_BUILD_TESTS OFF CACHE BOOL "" FORCE) |
| @@ -15,7 +15,7 @@ if(NOT BUILD_SHARED_LIBS) | @@ -15,7 +15,7 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 15 | endif() | 15 | endif() |
| 16 | 16 | ||
| 17 | set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip") | 17 | set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip") |
| 18 | -set(onnxruntime_URL2 "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip") | 18 | +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip") |
| 19 | set(onnxruntime_HASH "SHA256=3cfa5c2c5c21a9401572af5a4cd9d15ed8f6524f10d3b80e5a38676b3a31efe0") | 19 | set(onnxruntime_HASH "SHA256=3cfa5c2c5c21a9401572af5a4cd9d15ed8f6524f10d3b80e5a38676b3a31efe0") |
| 20 | 20 | ||
| 21 | # If you don't have access to the Internet, | 21 | # If you don't have access to the Internet, |
-
请 注册 或 登录 后发表评论