build: 更换github镜像

This commit is contained in:
msojocs 2022-05-14 20:11:47 +08:00
parent a83be132e2
commit b0a93084aa
5 changed files with 7 additions and 9 deletions

View File

@ -1,5 +1,5 @@
# 1.05.2204250-2 / 2022-05-11
- fix: 修复wcc编译器不支持单文件编译的bug
- fix: 修复wcc编译器不支持单文件编译的bug(感谢 @2715851270 反馈)
- fix: 修复cli异常
# 1.05.2204250-1 / 2022-04-26

@ -1 +1 @@
Subproject commit b4e89cd937775ef99c51c0bd7d8fcb020e29d80e
Subproject commit 83645b241c8119abc5e06b87cebfeaa78fe61893

View File

@ -1,6 +1,6 @@
name: wechat-devtools # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '1.05.2204250-1' # just for humans, typically '1.2+git' or '1.3.2'
version: '1.05.2204250-2' # just for humans, typically '1.2+git' or '1.3.2'
summary: WeChat Devtools for Linux # 79 char long summary
description: |
WeChat Devtools for Linux.

View File

@ -51,13 +51,11 @@ if [[ "$INPUT_VERSION" != "$DEVTOOLS_VERSION" ]];then
fi
notice "下载AppImage构建工具 ACTION_MODE:$ACTION_MODE"
if [[ $ACTION_MODE == 'true' ]]; then
appimagetool_host="github.com"
else
appimagetool_host="github.rc1844.workers.dev"
if [[ $ACTION_MODE != 'true' ]]; then
appimagetool_host="https://mirror.ghproxy.com/"
fi
if [ ! -f "$tmp_dir/appimagetool-x86_64.AppImage" ];then
wget "https://$appimagetool_host/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" \
wget "${appimagetool_host}https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" \
-O "$tmp_dir/appimagetool-x86_64.AppImage"
fi
chmod a+x "$tmp_dir/appimagetool-x86_64.AppImage"

View File

@ -50,7 +50,7 @@ mkdir -p tmp && cd tmp
if [ "$ACTION_MODE" != "true" ]; then
notice "非ACTION模式, 设置镜像源"
prefix="https://gh2.yanqishui.work/"
prefix="https://mirror.ghproxy.com/"
fi
wget ${prefix}https://github.com/microsoft/ripgrep-prebuilt/releases/download/v12.1.1-1/ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz -O ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz
tar xvf ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz -C ../bin && \