mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
Sync wgcf to V2.2.24 by GitLab CI/CD, 2024-12-24T20:02:06Z
This commit is contained in:
@@ -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.23
|
||||
# 判断 wgcf 的最新版本,如因 github 接口问题未能获取,默认 v2.2.24
|
||||
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.23'}
|
||||
latest=${latest:-'2.2.24'}
|
||||
[[ ! -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
|
||||
|
||||
Reference in New Issue
Block a user