Skip to content

Commit

Permalink
chore: update install_v2.sh for mainland
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <sam@secondstate.io>
  • Loading branch information
apepkuss committed Nov 7, 2024
1 parent da7a5ac commit 19f60da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/install_v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down Expand Up @@ -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"
Expand All @@ -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}"
Expand Down

0 comments on commit 19f60da

Please sign in to comment.