新脚本测试

This commit is contained in:
2026-07-29 23:16:19 +08:00
parent ebb656f6da
commit 2e88b4f779
+5 -16
View File
@@ -2,15 +2,9 @@
# ============================================================ # ============================================================
# frpc-console 一键部署脚本 (Docker 优先) # frpc-console 一键部署脚本 (Docker 优先)
# 支持:Linux x86_64 / ARM64 / ARMv7
# 自动安装:git / curl / wget / Docker
#
# 用法: # 用法:
# ./deploy.sh # 交互式选择通道 # curl -sSL .../deploy.sh | sudo bash
# ./deploy.sh --channel lts # 指定 LTS 通道 # curl -sSL .../deploy.sh | sudo bash -s -- --channel preview
# ./deploy.sh --channel preview # 指定 Preview 通道
# ./deploy.sh --yes # 跳过确认
# ./deploy.sh --check # 只检测环境
# ============================================================ # ============================================================
set -e set -e
@@ -25,18 +19,12 @@ if [ -t 1 ]; then
MAGENTA='\033[0;35m' MAGENTA='\033[0;35m'
NC='\033[0m' NC='\033[0m'
else else
RED='' RED=''; GREEN=''; YELLOW=''; BLUE=''; CYAN=''; MAGENTA=''; NC=''
GREEN=''
YELLOW=''
BLUE=''
CYAN=''
MAGENTA=''
NC=''
fi fi
# ---------- 配置 ---------- # ---------- 配置 ----------
REPO_URL="https://git.whitetop.xyz/lxh2875931338/frpc-console.git" REPO_URL="https://git.whitetop.xyz/lxh2875931338/frpc-console.git"
BRANCH="main" # 默认 mainselect_channel 会根据选择修改 BRANCH="main"
WORK_DIR="/tmp/frpc-console-build" WORK_DIR="/tmp/frpc-console-build"
DEFAULT_PORT=9300 DEFAULT_PORT=9300
DEFAULT_DEPLOY_DIR="/opt/frpc-console" DEFAULT_DEPLOY_DIR="/opt/frpc-console"
@@ -296,6 +284,7 @@ select_channel() {
else else
BRANCH="main" BRANCH="main"
fi fi
print_info "使用命令行参数: ${CHANNEL} 通道 (${BRANCH} 分支)"
return return
fi fi