diff --git a/project/packaging.scala b/project/packaging.scala index 8b40e4a6f..95c3d007e 100644 --- a/project/packaging.scala +++ b/project/packaging.scala @@ -80,13 +80,6 @@ object Packaging { lightOptions ++= Seq("-ext", "WixUIExtension", "-ext", "WixUtilExtension", "-cultures:en-us"), - wixConfig <<= (sbtVersion, sourceDirectory in Windows) map makeWindowsXml, - //wixFile <<= sourceDirectory in Windows map (_ / "sbt.xml"), - mappings in packageMsi in Windows <+= sbtLaunchJar map { f => f -> "sbt-launch.jar" }, - mappings in packageMsi in Windows <++= sourceDirectory in Windows map { d => Seq( - (d / "sbt.bat") -> "sbt.bat", - (d / "sbtconfig.txt") -> "sbtconfig.txt" - )}, javacOptions := Seq("-source", "1.5", "-target", "1.5"), // Universal ZIP download install. TODO - Share the above windows code, here.... @@ -97,6 +90,14 @@ object Packaging { }, // TODO - Adapt global `sbt`/`sbt-launch-lib` scripts for universal install... + // Windows customizations + mappings in Windows <++= mappings in Universal, + mappings in Windows <++= sourceDirectory in Windows map { d => Seq( + (d / "sbtconfig.txt") -> "conf/sbtconfig.txt" + )}, + wixConfig <<= (sbtVersion, sourceDirectory in Windows) map makeWindowsXml, + wixConfig in Windows <<= wixConfig, + // Misccelaneous publishing stuff... projectID in Debian <<= (organization, sbtVersion) apply { (o,v) => ModuleID(o,"sbt",v) }, projectID in Windows <<= (organization, sbtVersion) apply { (o,v) => ModuleID(o,"sbt",v) }, @@ -147,29 +148,36 @@ object Packaging { + - + - + + + + + + + + + + + + + + - + - - - - - - - - + @@ -179,7 +187,7 @@ object Packaging {