Skip to content

Commit

Permalink
Sync wgcf to V2.2.21 by GitLab CI/CD, 2024-01-12T06:35:44Z
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarmen committed Jan 12, 2024
1 parent cbd866a commit 4d8d79d
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down
4 changes: 2 additions & 2 deletions pc/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 4d8d79d

Please sign in to comment.