Skip to content

Commit

Permalink
Make Debian/packageBin more resilient to versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs committed Apr 23, 2021
1 parent 4d40a65 commit c756b72
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions admin/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ libraryDependencies ++= Seq(
specs2 % Test
)

Debian/version := {
val noDashVersion = (Compile/version).value.replace("-", "~")
if (noDashVersion.matches("^\\d.*")) {
noDashVersion
} else {
"0~" + noDashVersion
}
}

maintainer := "Lucid Software, Inc. <[email protected]>"

name := "piezo-admin"
Expand Down

0 comments on commit c756b72

Please sign in to comment.