diff --git a/docker.sh b/docker.sh index b05a2d5..b445f85 100644 --- a/docker.sh +++ b/docker.sh @@ -620,10 +620,10 @@ install(){ }& # 注册 WARP 账户 (将生成 wgcf-account.toml 文件保存账户信息) - # 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.24 + # 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.25 { latest=$(wget --no-check-certificate -qO- -T1 -t1 $CDN "https://api.github.com/repos/ViRb3/wgcf/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g') - latest=${latest:-'2.2.24'} + latest=${latest:-'2.2.25'} # 安装 wgcf,尽量下载官方的最新版本,如官方 wgcf 下载不成功,将使用 jsDelivr ,以更好的支持双栈。并添加执行权限 wget --no-check-certificate -T1 -t1 $CDN -O /usr/local/bin/wgcf https://github.com/ViRb3/wgcf/releases/download/v"$latest"/wgcf_"$latest"_linux_$ARCHITECTURE || diff --git a/pc/mac.sh b/pc/mac.sh index a117315..0dca5cd 100644 --- a/pc/mac.sh +++ b/pc/mac.sh @@ -264,10 +264,10 @@ install(){ ! type -p brew >/dev/null 2>&1 && /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" ! type -p wg >/dev/null 2>&1 && brew install wireguard-tools - # 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.24 + # 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.25 green "\n ${L[11]}\n " latest=$(curl -fsSL "https://api.github.com/repos/ViRb3/wgcf/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g') - latest=${latest:-'2.2.24'} + latest=${latest:-'2.2.25'} [[ ! -e /usr/local/bin/wgcf ]] && sudo curl -o /usr/local/bin/wgcf https://gitlab.com/fscarmen/warp/-/raw/main/wgcf/wgcf_"$latest"_darwin_"$ARCHITECTURE" # 安装 wireguard-go diff --git a/wgcf/wgcf_2.2.24_linux_arm64 b/wgcf/wgcf_2.2.24_linux_arm64 deleted file mode 100644 index 05958e2..0000000 Binary files a/wgcf/wgcf_2.2.24_linux_arm64 and /dev/null differ diff --git a/wgcf/wgcf_2.2.24_darwin_amd64 b/wgcf/wgcf_2.2.25_darwin_amd64 similarity index 57% rename from wgcf/wgcf_2.2.24_darwin_amd64 rename to wgcf/wgcf_2.2.25_darwin_amd64 index 6eb154d..9ffd059 100644 Binary files a/wgcf/wgcf_2.2.24_darwin_amd64 and b/wgcf/wgcf_2.2.25_darwin_amd64 differ diff --git a/wgcf/wgcf_2.2.25_darwin_arm64 b/wgcf/wgcf_2.2.25_darwin_arm64 new file mode 100644 index 0000000..d37b8f8 Binary files /dev/null and b/wgcf/wgcf_2.2.25_darwin_arm64 differ diff --git a/wgcf/wgcf_2.2.24_linux_386 b/wgcf/wgcf_2.2.25_linux_386 similarity index 55% rename from wgcf/wgcf_2.2.24_linux_386 rename to wgcf/wgcf_2.2.25_linux_386 index 1f7cae7..b0e1c8f 100644 Binary files a/wgcf/wgcf_2.2.24_linux_386 and b/wgcf/wgcf_2.2.25_linux_386 differ diff --git a/wgcf/wgcf_2.2.24_windows_amd64.exe b/wgcf/wgcf_2.2.25_linux_amd64 similarity index 57% rename from wgcf/wgcf_2.2.24_windows_amd64.exe rename to wgcf/wgcf_2.2.25_linux_amd64 index a00dfb8..3fbf89b 100644 Binary files a/wgcf/wgcf_2.2.24_windows_amd64.exe and b/wgcf/wgcf_2.2.25_linux_amd64 differ diff --git a/wgcf/wgcf_2.2.24_darwin_arm64 b/wgcf/wgcf_2.2.25_linux_arm64 similarity index 56% rename from wgcf/wgcf_2.2.24_darwin_arm64 rename to wgcf/wgcf_2.2.25_linux_arm64 index 3e59fff..1a015fa 100644 Binary files a/wgcf/wgcf_2.2.24_darwin_arm64 and b/wgcf/wgcf_2.2.25_linux_arm64 differ diff --git a/wgcf/wgcf_2.2.24_linux_s390x b/wgcf/wgcf_2.2.25_linux_s390x similarity index 57% rename from wgcf/wgcf_2.2.24_linux_s390x rename to wgcf/wgcf_2.2.25_linux_s390x index 295ce0c..ed5a5ba 100644 Binary files a/wgcf/wgcf_2.2.24_linux_s390x and b/wgcf/wgcf_2.2.25_linux_s390x differ diff --git a/wgcf/wgcf_2.2.24_windows_386.exe b/wgcf/wgcf_2.2.25_windows_386.exe similarity index 55% rename from wgcf/wgcf_2.2.24_windows_386.exe rename to wgcf/wgcf_2.2.25_windows_386.exe index e5bed49..03773b1 100644 Binary files a/wgcf/wgcf_2.2.24_windows_386.exe and b/wgcf/wgcf_2.2.25_windows_386.exe differ diff --git a/wgcf/wgcf_2.2.24_linux_amd64 b/wgcf/wgcf_2.2.25_windows_amd64.exe similarity index 55% rename from wgcf/wgcf_2.2.24_linux_amd64 rename to wgcf/wgcf_2.2.25_windows_amd64.exe index 70483d9..4a2307f 100644 Binary files a/wgcf/wgcf_2.2.24_linux_amd64 and b/wgcf/wgcf_2.2.25_windows_amd64.exe differ