fix: 修正构建命令中的包路径,确保版本更新信息正确传递

This commit is contained in:
Akizon77
2025-05-16 21:06:45 +08:00
parent 12dbaf2be5
commit d64c11eab1

View File

@@ -36,7 +36,7 @@ jobs:
if [ "${{ matrix.goos }}" = "windows" ]; then
BINARY_NAME=${BINARY_NAME}.exe
fi
go build -trimpath -ldflags="-s -w -X update.CurrentVersion=${VERSION}" -o $BINARY_NAME
go build -trimpath -ldflags="-s -w -X github.com/komari-monitor/komari-agent/update.CurrentVersion=${VERSION}" -o $BINARY_NAME
- name: Upload binary to release
env: