Commit b70b730c by Torkel Ödegaard

fix(build): minor fix for build script to make latest copy for rpm when version…

fix(build): minor fix for build script to make latest copy for rpm when version is pre release version
parent dbc1a9cf
...@@ -73,7 +73,7 @@ func main() { ...@@ -73,7 +73,7 @@ func main() {
case "package": case "package":
//verifyGitRepoIsClean() //verifyGitRepoIsClean()
grunt("release") // grunt("release")
createLinuxPackages() createLinuxPackages()
case "latest": case "latest":
...@@ -89,8 +89,13 @@ func main() { ...@@ -89,8 +89,13 @@ func main() {
} }
func makeLatestDistCopies() { func makeLatestDistCopies() {
rpmIteration := "-1"
if linuxPackageIteration != "" {
rpmIteration = "-" + linuxPackageIteration
}
runError("cp", "dist/grafana_"+version+"_amd64.deb", "dist/grafana_latest_amd64.deb") runError("cp", "dist/grafana_"+version+"_amd64.deb", "dist/grafana_latest_amd64.deb")
runError("cp", "dist/grafana-"+strings.Replace(version, "-", "_", 5)+"-1.x86_64.rpm", "dist/grafana-latest-1.x86_64.rpm") runError("cp", "dist/grafana-"+linuxPackageVersion+rpmIteration+".x86_64.rpm", "dist/grafana-latest-1.x86_64.rpm")
runError("cp", "dist/grafana-"+version+".linux-x64.tar.gz", "dist/grafana-latest.linux-x64.tar.gz") runError("cp", "dist/grafana-"+version+".linux-x64.tar.gz", "dist/grafana-latest.linux-x64.tar.gz")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment