feat(remote): 增加远端控制台与日志汇总导出
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
# ./build.sh mac-arm # 构建 macOS ARM64 版本
|
||||
# ./build.sh release # 构建 Windows amd64 和 macOS ARM64
|
||||
# ./build.sh linux # 构建 Linux 版本
|
||||
# ./build.sh control # 构建远端控制台
|
||||
# ./build.sh clean # 清理构建产物
|
||||
# ./build.sh install # 安装前端依赖
|
||||
|
||||
@@ -173,6 +174,14 @@ build_linux() {
|
||||
ls -lh build/bin/
|
||||
}
|
||||
|
||||
# 构建远端控制中心
|
||||
build_control() {
|
||||
info "构建远端控制中心..."
|
||||
mkdir -p build/bin
|
||||
go build -o build/bin/douyu-control ./cmd/douyu-control
|
||||
success "远端控制中心构建完成: build/bin/douyu-control"
|
||||
}
|
||||
|
||||
# 清理构建产物
|
||||
clean_build() {
|
||||
info "清理构建产物..."
|
||||
@@ -196,6 +205,7 @@ show_help() {
|
||||
echo " ./build.sh mac-arm # 构建 macOS ARM64 版本"
|
||||
echo " ./build.sh release # 构建 Windows amd64 和 macOS ARM64"
|
||||
echo " ./build.sh linux # 构建 Linux 版本"
|
||||
echo " ./build.sh control # 构建远端控制台"
|
||||
echo " ./build.sh clean # 清理构建产物"
|
||||
echo " ./build.sh install # 安装前端依赖"
|
||||
echo " ./build.sh help # 显示此帮助"
|
||||
@@ -232,6 +242,9 @@ main() {
|
||||
linux)
|
||||
build_linux
|
||||
;;
|
||||
control)
|
||||
build_control
|
||||
;;
|
||||
clean)
|
||||
clean_build
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user