chore: import Local-Cursor v1.1.8 source snapshot
Includes the current working directory changes. Historical commits and release binaries are excluded to limit Gitea storage. Source base: d7515973fbfd6dd2001fa156c483455b8081c7cb
This commit is contained in:
24
internal/buildinfo/buildinfo.go
Normal file
24
internal/buildinfo/buildinfo.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user