Files
dygou_go/build.sh
T
yml2213 8790c4ca33 增加设置界面、debug日志等级、版本号展示、构建脚本
- 新增设置弹窗: trace开关/正文上限、日志等级(debug/info/warn/error)、并发数、重试次数
- 配置运行时生效,持久化到 config.json
- 日志系统支持 debug 级别过滤
- 工具栏展示版本号(v0.0.2),来源 wails.json + constants.go
- 抢购并发数和重试次数改为读取配置,不再写死常量
- 新增 build.sh 构建脚本,Windows exe 文件名带版本号
- config.json 加入 .gitignore
2026-06-24 20:18:33 +08:00

21 lines
587 B
Bash
Executable File

#!/bin/bash
# 构建带版本号的产物
# 用法: ./build.sh # 构建当前平台
# GOOS=windows ./build.sh # 构建 Windows
# GOOS=linux ./build.sh # 构建 Linux
set -e
VERSION=$(grep '"version"' wails.json | head -1 | sed 's/.*"version": *"//;s/".*//')
echo "版本: v${VERSION}"
if [ "$GOOS" = "windows" ]; then
wails build -platform windows/amd64 -o "douyu_go_v${VERSION}.exe"
elif [ "$GOOS" = "linux" ]; then
wails build -platform linux/amd64 -o "douyu_go_v${VERSION}"
else
wails build
fi
echo "=== 构建产物 ==="
ls -lh build/bin/