diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..09be01613 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +src/windows/sbtconfig.txt eol=crlf diff --git a/project/packaging.scala b/project/packaging.scala index fc5486d36..1018e7ac2 100644 --- a/project/packaging.scala +++ b/project/packaging.scala @@ -143,7 +143,10 @@ object Packaging { // WINDOWS SPECIFIC name in Windows := "sbt", - lightOptions ++= Seq("-ext", "WixUIExtension", "-cultures:en-us"), + candleOptions ++= Seq("-ext", "WixUtilExtension"), + 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" }, @@ -151,6 +154,7 @@ object Packaging { mappings in packageMsi in Windows <++= sourceDirectory in Windows map { d => Seq( (d / "sbt.bat") -> "sbt.bat", (d / "sbt") -> "sbt", + (d / "sbtconfig.txt") -> "sbtconfig.txt", (d / "jansi-license.txt") -> "jansi-license.txt" )}, mappings in packageMsi in Windows <+= (compile in Compile, classDirectory in Compile) map { (c, d) => @@ -196,7 +200,8 @@ object Packaging { case Array(major) => Seq(major,"0","0","1") mkString "." } ( - + + + + + + + - + + + + @@ -222,12 +236,19 @@ object Packaging { - + + + + + + + + @@ -243,7 +264,19 @@ object Packaging { - + + + + + + + + + @@ -251,10 +284,14 @@ object Packaging { + - + + + +