fix: 修复写队列 busy 恢复、关闭安全、备份与配置构建问题

This commit is contained in:
Nixevol
2026-09-30 16:21:05 +08:00
parent 4059a1576b
commit 57c2f70678
23 changed files with 825 additions and 101 deletions
+4 -2
View File
@@ -5,6 +5,8 @@ vars:
BIN_NAME: nixmsg
EMBED_TAG: embeddist
EXE: '{{if eq OS "windows"}}.exe{{end}}'
VERSION:
sh: git describe --tags --always --dirty
includes:
'*':
@@ -44,7 +46,7 @@ tasks:
desc: 构建嵌入前端的单个可执行文件
deps: [web:build]
cmds:
- go build -tags {{.EMBED_TAG}} -o {{.BIN_DIR}}/{{.BIN_NAME}}{{.EXE}} ./cmd/nixmsg
- go build -tags {{.EMBED_TAG}} -ldflags "-X main.Version={{.VERSION}}" -o {{.BIN_DIR}}/{{.BIN_NAME}}{{.EXE}} ./cmd/nixmsg
env:
CGO_ENABLED: "0"
@@ -74,4 +76,4 @@ tasks:
docker:
desc: 构建开发用 Docker 镜像
cmds:
- docker build -t nixmsg:dev -f deploy/Dockerfile .
- docker build --build-arg VERSION={{.VERSION}} -t nixmsg:dev -f deploy/Dockerfile .