fix: 修复写队列 busy 恢复、关闭安全、备份与配置构建问题
This commit is contained in:
+4
-2
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user