Files
2026-06-30 10:38:52 +08:00

25 lines
538 B
Go

package buildinfo
import "strings"
const (
ReleaseRepo = "leookun/cursor-byok"
UpdateBaseURL = "https://github.com/leookun/cursor-byok/releases/latest/download/"
ReleasePageURL = "https://github.com/leookun/cursor-byok/releases"
)
// 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()
}