Sync wgcf to V2.2.20 by GitLab CI/CD, 2023-12-29T01:14:47Z

Former-commit-id: a249ceffc30efc79844b6550edfc140c2d711346
This commit is contained in:
fscarmen
2023-12-29 01:15:17 +00:00
parent 0ad4949310
commit a42e9dc2d1
18 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -620,10 +620,10 @@ install(){
}&
# 注册 WARP 账户 (将生成 wgcf-account.toml 文件保存账户信息)
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.19
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.20
{
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.19'}
latest=${latest:-'2.2.20'}
# 安装 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 ||
+2 -2
View File
@@ -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.19
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.20
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.19'}
latest=${latest:-'2.2.20'}
[[ ! -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
@@ -1 +0,0 @@
b09439cd91cb879d1ea42f13afd55c4ee26e9129
@@ -1 +0,0 @@
98c1b0c8c314dd85aee7cd469175501b828ff9c8
@@ -1 +0,0 @@
7543b9f063b2549f31c044a86260cf09537a0192
@@ -1 +0,0 @@
a4d5672512e46a0c919a7f176fe39e0051852338
@@ -1 +0,0 @@
b0d7c4c9f9e585901f166404ce2adffd7cf03054
@@ -1 +0,0 @@
9bfd969771e158df7b45e33c179fd63b04fdf97a
@@ -1 +0,0 @@
ae22759cdac89d863d3ebc010f9745264ffb349c
@@ -1 +0,0 @@
2e0fa00ffd45dfd7c253c442ed93aec70430e93f
@@ -0,0 +1 @@
183c2d2be9e4bec7f9a2f96d7ce7980d538a516a
@@ -0,0 +1 @@
1e810013081331a2d7c7636f216dfbec737d10a6
@@ -0,0 +1 @@
3e6c9ec0aeecbe3692a59ebd9949ab7d20e5f6b7
@@ -0,0 +1 @@
b6a0ad9af80f5e77d89fa99dfad0bf8ed0cd4dd4
@@ -0,0 +1 @@
218ac9e2c7f01e86b710942d9d6215d86ab6fb2a
@@ -0,0 +1 @@
0c9b0517c21deeb3fb1121d57ccdb6cbccec5be0
@@ -0,0 +1 @@
4215106f4e5ca377885819af36a54c22ffeef6ef
@@ -0,0 +1 @@
a70cf2b3f410b9c9b3e129b6f0c9a9d2518f3491