mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-12-01 09:15:33 +08:00
v0.3.8
This commit is contained in:
commit
c083be5ec2
312 files changed
+146628
No files matched your search
@@ -0,0 +1,24 @@
|
||||
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()
|
||||
}
|
||||
Reference in new issue
Block a user