summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-21 00:53:39 +0800
committerruki <[email protected]>2022-05-21 00:53:39 +0800
commitadb495c2069ad4663360ab7230f8dd6a8895de14 (patch)
treec54b7aa3f0463adfd03846d6a755d02e56896602 /scripts
parent6cf488d207c3009aba6319759a2cc2fb6aa7a405 (diff)
remove jsdelivr
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index ca009407d..e2924a322 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -83,8 +83,7 @@ if [ 'x__local__' != "x$branch" ]; then
gitrepo_raw="https://gitee.com/tboox/xmake/raw/master"
else
gitrepo="https://github.com/xmake-io/xmake.git"
- #gitrepo_raw="https://github.com/xmake-io/xmake/raw/master"
- gitrepo_raw="https://cdn.jsdelivr.net/gh/xmake-io/xmake@master"
+ gitrepo_raw="https://github.com/xmake-io/xmake/raw/master"
fi
fi
@@ -178,14 +177,9 @@ elif [ 'x__run__' = "x$branch" ]; then
pack=gz
fi
mkdir -p $projectdir
- runfile_url="https://cdn.jsdelivr.net/gh/xmake-mirror/xmake-releases@$version/xmake-$version.$pack.run"
+ runfile_url="https://github.com/xmake-io/xmake/releases/download/$version/xmake-$version.$pack.run"
echo "downloading $runfile_url .."
remote_get_content "$runfile_url" > $projectdir/xmake.run
- if [[ $? != 0 ]]; then
- runfile_url="https://github.com/xmake-io/xmake/releases/download/$version/xmake-$version.$pack.run"
- echo "downloading $runfile_url .."
- remote_get_content "$runfile_url" > $projectdir/xmake.run
- fi
sh $projectdir/xmake.run --noexec --target $projectdir
else
echo "cloning $gitrepo $branch .."