From d641142540883a12aa4cb32fcb8780700a29aaae Mon Sep 17 00:00:00 2001 From: msojocs Date: Wed, 23 Feb 2022 21:11:42 +0800 Subject: [PATCH] fix --- tools/build-release.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/build-release.sh b/tools/build-release.sh index c88aeb4..2a853a6 100644 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -32,7 +32,12 @@ rm -rf "$build_dir" mkdir -p "$build_dir" notice "下载AppImage构建工具" -wget "https://download.fastgit.org/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" \ +if [ $ACTION_MODE!='true' ]; then + appimagetool_host="github.com" +else + appimagetool_host="download.fastgit.org" +fi +wget "https://$appimagetool_host/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" \ -O "$tmp_dir/appimagetool-x86_64.AppImage" chmod a+x "$tmp_dir/appimagetool-x86_64.AppImage"