Sync wgcf to V2.2.22 by GitLab CI/CD, 2024-03-09T20:02:03Z

Former-commit-id: 45dcf3c01b86ce891b4ce7be1d35dd5a2eade808
This commit is contained in:
fscarmen
2024-03-09 20:02:54 +00:00
parent 6990c3bf46
commit 8074730133
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.21
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.22
{
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.21'}
latest=${latest:-'2.2.22'}
# 安装 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.21
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.22
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.21'}
latest=${latest:-'2.2.22'}
[[ ! -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 @@
bc8e11a0459478e9543c8daaa2c3ec10886a601e
@@ -1 +0,0 @@
2be4e0138e4415c0af2932d995a35ad5b6ad1c4d
@@ -1 +0,0 @@
bb4cd15516ac990c566cbfd2921d98b601971968
@@ -1 +0,0 @@
f84e4244966d30b846bddf9d700d3765e8864176
@@ -1 +0,0 @@
068fe5c84f3d5a7913f22d94a39fc869fdb190da
@@ -1 +0,0 @@
4d7268eb196567fda87913c22e858f5e7a5a7066
@@ -1 +0,0 @@
fabc4ee827378900b4c95ef092b9b0ddd6df4584
@@ -1 +0,0 @@
494a8912ca4abc8700f4eff6ff533dbb70850fe0
@@ -0,0 +1 @@
6735cf684ba50ae34c76f8830b0478ffbfb7546e
@@ -0,0 +1 @@
26db70b721569b8232b74a083f6eef469c0e428c
@@ -0,0 +1 @@
a4ecf4dbd94dcdfdacfbdb36302eaafebacb6ccf
@@ -0,0 +1 @@
6e2b65a0675b35607e1e895daa8c6147db3df887
@@ -0,0 +1 @@
dfc46360cf5057d6308e33218524671da72564d6
@@ -0,0 +1 @@
d4aaa8aadfecb459ac2438212a45a7e2254c384e
@@ -0,0 +1 @@
6093dce8386bf224e0da67929ca3820aa51abec9
@@ -0,0 +1 @@
9a69cb38ff0085a2d91b4c22af9ec49c43306f72