build: add -unstable to archive names

This commit is contained in:
Felix Lange 2016-11-03 12:19:17 +01:00
parent 810b866146
commit b9b037b138

View file

@ -319,6 +319,9 @@ func doArchive(cmdline []string) {
func archiveBasename(arch string, env build.Environment) string { func archiveBasename(arch string, env build.Environment) string {
platform := runtime.GOOS + "-" + arch platform := runtime.GOOS + "-" + arch
archive := platform + "-" + build.VERSION() archive := platform + "-" + build.VERSION()
if isUnstableBuild(env) {
archive += "-unstable"
}
if env.Commit != "" { if env.Commit != "" {
archive += "-" + env.Commit[:8] archive += "-" + env.Commit[:8]
} }