1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-17 21:27:52 +02:00

[#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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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 {