Includes the current working directory changes. Historical commits and release binaries are excluded to limit Gitea storage. Source base: d7515973fbfd6dd2001fa156c483455b8081c7cb
25 lines
408 B
Go
25 lines
408 B
Go
package buildinfo
|
|
|
|
import "strings"
|
|
|
|
const (
|
|
ReleaseRepo = ""
|
|
UpdateBaseURL = ""
|
|
ReleasePageURL = ""
|
|
)
|
|
|
|
// Version is injected at build time from build/config.yml.
|
|
var Version = "0.0.0"
|
|
|
|
func CurrentVersion() string {
|
|
version := strings.TrimSpace(strings.TrimPrefix(Version, "v"))
|
|
if version == "" {
|
|
return "0.0.0"
|
|
}
|
|
return version
|
|
}
|
|
|
|
func ReleaseTag() string {
|
|
return "v" + CurrentVersion()
|
|
}
|