[#69] automatically add version information

This commit is contained in:
毛亚琛
2022-07-11 15:26:55 +08:00
committed by GitHub
parent 10d7faea31
commit ec0d3b0d3d
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -9,6 +9,8 @@ before:
builds: builds:
- main: ./examples/base - main: ./examples/base
binary: pocketbase binary: pocketbase
ldflags:
- -s -w -X github.com/pocketbase/pocketbase.Version={{ .Version }}
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
goos: goos:
+1 -1
View File
@@ -17,7 +17,7 @@ import (
var _ core.App = (*PocketBase)(nil) var _ core.App = (*PocketBase)(nil)
// Version of PocketBase // Version of PocketBase
const Version = "0.1.0" var Version = "(untracked)"
// appWrapper serves as a private core.App instance wrapper. // appWrapper serves as a private core.App instance wrapper.
type appWrapper struct { type appWrapper struct {