From eba16354eaece2498e4af9434846887684228cb5 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Sat, 24 Dec 2011 00:46:15 -0500 Subject: [PATCH] First attempt at a windows MSI. * Windows WIX configuration * Windows package configuration * Default lame-o bat file for SBT, until I get external contribs. --- project/packaging.scala | 10 +++++++++- src/windows/sbt.bat | 2 ++ src/windows/sbt.xml | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 src/windows/sbt.bat create mode 100644 src/windows/sbt.xml diff --git a/project/packaging.scala b/project/packaging.scala index c12999fa1..653ae9896 100644 --- a/project/packaging.scala +++ b/project/packaging.scala @@ -81,6 +81,14 @@ object Packaging { rpmVendor := "typesafe", rpmUrl := Some("http://github.com/paulp/sbt-extras"), rpmSummary := Some("Simple Build Tool for Scala-driven builds."), - rpmLicense := Some("BSD") + rpmLicense := Some("BSD"), + + + // WINDOWS SPECIFIC + name in Windows := "sbt", + 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 => + (d / "sbt.bat") -> "sbt.bat" } ) } diff --git a/src/windows/sbt.bat b/src/windows/sbt.bat new file mode 100644 index 000000000..92706aeeb --- /dev/null +++ b/src/windows/sbt.bat @@ -0,0 +1,2 @@ +set SCRIPT_DIR=%~dp0 +java -Xmx512M -jar "%SCRIPT_DIR%sbt-launch.jar" %* \ No newline at end of file diff --git a/src/windows/sbt.xml b/src/windows/sbt.xml new file mode 100644 index 000000000..9144dce39 --- /dev/null +++ b/src/windows/sbt.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file