From 19f60da17fa28568b113777c4ce7b6cc6ac90f18 Mon Sep 17 00:00:00 2001 From: Xin Liu Date: Thu, 7 Nov 2024 11:00:28 +0800 Subject: [PATCH] chore: update `install_v2.sh` for mainland Signed-off-by: Xin Liu --- utils/install_v2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/install_v2.sh b/utils/install_v2.sh index 43b9dad56a97..8131fd0f1170 100755 --- a/utils/install_v2.sh +++ b/utils/install_v2.sh @@ -393,7 +393,7 @@ install() { get_wasmedge_release() { info "Fetching WasmEdge-$VERSION" - _downloader "https://github.com/WasmEdge/WasmEdge/releases/download/$VERSION/WasmEdge-$VERSION-$RELEASE_PKG" + _downloader "https://mirror.ghproxy.com/https://github.com/WasmEdge/WasmEdge/releases/download/$VERSION/WasmEdge-$VERSION-$RELEASE_PKG" _extractor -C "${TMP_DIR}" -vxzf "$TMP_DIR/WasmEdge-$VERSION-$RELEASE_PKG" } @@ -431,10 +431,10 @@ get_wasmedge_ggml_plugin() { if [ "$GGML_BUILD_NUMBER" == "" ]; then info "Use default GGML plugin" - _downloader "https://github.com/WasmEdge/WasmEdge/releases/download/$VERSION/WasmEdge-plugin-wasi_nn-ggml${CUDA_EXT}${NOAVX_EXT}-$VERSION-$RELEASE_PKG" + _downloader "https://mirror.ghproxy.com/https://github.com/WasmEdge/WasmEdge/releases/download/$VERSION/WasmEdge-plugin-wasi_nn-ggml${CUDA_EXT}${NOAVX_EXT}-$VERSION-$RELEASE_PKG" else info "Use ${GGML_BUILD_NUMBER} GGML plugin" - _downloader "https://github.com/second-state/WASI-NN-GGML-PLUGIN-REGISTRY/raw/main/${VERSION}/${GGML_BUILD_NUMBER}/WasmEdge-plugin-wasi_nn-ggml${CUDA_EXT}${NOAVX_EXT}-$VERSION-$RELEASE_PKG" + _downloader "https://mirror.ghproxy.com/https://github.com/second-state/WASI-NN-GGML-PLUGIN-REGISTRY/raw/main/${VERSION}/${GGML_BUILD_NUMBER}/WasmEdge-plugin-wasi_nn-ggml${CUDA_EXT}${NOAVX_EXT}-$VERSION-$RELEASE_PKG" fi local TMP_PLUGIN_DIR="${TMP_DIR}/${IPKG}/plugin" @@ -444,7 +444,7 @@ get_wasmedge_ggml_plugin() { get_wasmedge_wasi_logging_plugin() { info "Fetching WASI-Logging-Plugin" - _downloader "https://github.com/WasmEdge/WasmEdge/releases/download/$VERSION/WasmEdge-plugin-wasi_logging-$VERSION-$RELEASE_PKG" + _downloader "https://mirror.ghproxy.com/https://github.com/WasmEdge/WasmEdge/releases/download/$VERSION/WasmEdge-plugin-wasi_logging-$VERSION-$RELEASE_PKG" local TMP_PLUGIN_DIR="${TMP_DIR}/${IPKG}/plugin" mkdir -p "${TMP_PLUGIN_DIR}" _extractor -C "${TMP_PLUGIN_DIR}" -vxzf "${TMP_DIR}/WasmEdge-plugin-wasi_logging-${VERSION}-${RELEASE_PKG}"