Add sbt.build.patch

This commit is contained in:
Eugene Yokota 2020-01-24 11:56:29 -05:00
parent cfb278b17b
commit 2b5ed6529b
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ val root = (project in file(".")).
},
// DEBIAN SPECIFIC
debianBuildId := 0,
debianBuildId := sys.props.getOrElse("sbt.build.patch", sys.env.getOrElse("DIST_PATCHVER", "0")).toInt,
version in Debian := {
if (debianBuildId.value == 0) sbtVersionToRelease
else sbtVersionToRelease + "." + debianBuildId.value
@ -127,7 +127,7 @@ val root = (project in file(".")).
debianNativeBuildOptions in Debian := Seq("-Zgzip", "-z3"),
// RPM SPECIFIC
rpmRelease := "0",
rpmRelease := debianBuildId.value.toString,
version in Rpm := {
val stable0 = (sbtVersionToRelease split "[^\\d]" filterNot (_.isEmpty) mkString ".")
val stable = if (rpmRelease.value == "0") stable0