mage: add version rule
This commit is contained in:
parent
121f7fa52c
commit
9b0c00cefd
6
mage.go
6
mage.go
|
@ -186,3 +186,9 @@ func Package() {
|
||||||
shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".")
|
shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Version() {
|
||||||
|
ver, err := gitTag()
|
||||||
|
qod.ANE(err)
|
||||||
|
qod.Printlnf("route-%s", ver)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue