Exclude sbtn from RPM file

This commit is contained in:
Eugene Yokota 2020-09-20 20:39:48 -04:00
parent e880829762
commit 8559b0ece7
1 changed files with 8 additions and 0 deletions

View File

@ -203,6 +203,14 @@ val root = (project in file(".")).
})
else stable
},
// remove sbtn from RPM because it complains about it being noarch
linuxPackageMappings in Rpm := {
val orig = (linuxPackageMappings in Rpm).value
val nativeMappings = sbtnJarsMappings.value
orig.map(o => o.copy(mappings = o.mappings.toList filterNot {
case (x, p) => p.contains("sbtn-x86_64")
}))
},
rpmVendor := "lightbend",
rpmUrl := Some("http://github.com/sbt/sbt-launcher-package"),
rpmLicense := Some("BSD"),