mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-04 10:17:30 +03:00
Update Makefile
This commit is contained in:
@@ -21,3 +21,12 @@ func ReadTag() (string, error) {
|
||||
}
|
||||
return version.String() + "-" + shortCommit, nil
|
||||
}
|
||||
|
||||
func ReadTagVersion() (string, error) {
|
||||
currentTagRev, err := shell.Exec("git", "describe", "--tags", "--abbrev=0").ReadOutput()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
version := badversion.Parse(currentTagRev[1:])
|
||||
return version.VersionString(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user