summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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 .."