diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 42762bc31..780b70f9b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,6 +9,8 @@ before: builds: - main: ./examples/base binary: pocketbase + ldflags: + - -s -w -X github.com/pocketbase/pocketbase.Version={{ .Version }} env: - CGO_ENABLED=0 goos: diff --git a/pocketbase.go b/pocketbase.go index 64b32a10c..404e9fcf2 100644 --- a/pocketbase.go +++ b/pocketbase.go @@ -17,7 +17,7 @@ import ( var _ core.App = (*PocketBase)(nil) // Version of PocketBase -const Version = "0.1.0" +var Version = "(untracked)" // appWrapper serves as a private core.App instance wrapper. type appWrapper struct {