Sync wgcf to V2.2.21 by GitLab CI/CD, 2024-01-12T06:35:44Z

Former-commit-id: 4d8d79d0ee1312980cf3a630b56d040248bfed3a
This commit is contained in:
fscarmen
2024-01-12 06:36:19 +00:00
parent 0d46347f03
commit f8f77791c5
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.20
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.21
{
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.20'}
latest=${latest:-'2.2.21'}
# 安装 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.20
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.21
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.20'}
latest=${latest:-'2.2.21'}
[[ ! -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 @@
183c2d2be9e4bec7f9a2f96d7ce7980d538a516a
@@ -1 +0,0 @@
1e810013081331a2d7c7636f216dfbec737d10a6
@@ -1 +0,0 @@
3e6c9ec0aeecbe3692a59ebd9949ab7d20e5f6b7
@@ -1 +0,0 @@
b6a0ad9af80f5e77d89fa99dfad0bf8ed0cd4dd4
@@ -1 +0,0 @@
218ac9e2c7f01e86b710942d9d6215d86ab6fb2a
@@ -1 +0,0 @@
0c9b0517c21deeb3fb1121d57ccdb6cbccec5be0
@@ -1 +0,0 @@
4215106f4e5ca377885819af36a54c22ffeef6ef
@@ -1 +0,0 @@
a70cf2b3f410b9c9b3e129b6f0c9a9d2518f3491
@@ -0,0 +1 @@
bc8e11a0459478e9543c8daaa2c3ec10886a601e
@@ -0,0 +1 @@
2be4e0138e4415c0af2932d995a35ad5b6ad1c4d
@@ -0,0 +1 @@
bb4cd15516ac990c566cbfd2921d98b601971968
@@ -0,0 +1 @@
f84e4244966d30b846bddf9d700d3765e8864176
@@ -0,0 +1 @@
068fe5c84f3d5a7913f22d94a39fc869fdb190da
@@ -0,0 +1 @@
4d7268eb196567fda87913c22e858f5e7a5a7066
@@ -0,0 +1 @@
fabc4ee827378900b4c95ef092b9b0ddd6df4584
@@ -0,0 +1 @@
494a8912ca4abc8700f4eff6ff533dbb70850fe0