From 8559b0ece703fbd555e87662ea0a2252f7394c78 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sun, 20 Sep 2020 20:39:48 -0400 Subject: [PATCH] Exclude sbtn from RPM file --- build.sbt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sbt b/build.sbt index 0f2fe30bc..106a5a7a6 100755 --- a/build.sbt +++ b/build.sbt @@ -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"),