mirror of https://github.com/sbt/sbt.git
First attempt at a windows MSI.
* Windows WIX configuration * Windows package configuration * Default lame-o bat file for SBT, until I get external contribs.
This commit is contained in:
parent
65d2c9dc51
commit
eba16354ea
|
|
@ -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" }
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
set SCRIPT_DIR=%~dp0
|
||||
java -Xmx512M -jar "%SCRIPT_DIR%sbt-launch.jar" %*
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version='1.0'?>
|
||||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
|
||||
<Product Id='PUT-GUID-HERE'
|
||||
Name='Simple Build Tool'
|
||||
Language='1033'
|
||||
Version='1.0.0.00.10.2'
|
||||
Manufacturer='Typesafe, Inc.'
|
||||
UpgradeCode='PUT-GUID-HERE'>
|
||||
<Package Description='Simple Build Tool launcher script.'
|
||||
Comments='First attempt to create an SBT windows installer, bear with me.'
|
||||
Manufacturer='Typesafe, Inc.'
|
||||
InstallerVersion='200'
|
||||
Compressed='yes' />
|
||||
|
||||
<Media Id='1' Cabinet='sbt.cab' EmbedCab='yes' />
|
||||
|
||||
<Directory Id='TARGETDIR' Name='SourceDir'>
|
||||
<Directory Id='ProgramFilesFolder' Name='PFiles'>
|
||||
<Directory Id='MyDir' Name='sbt'>
|
||||
<Component Id='SbtLauncherScript' Guid='PUT-GUID-HERE'>
|
||||
<File Id='sbt' Name='sbt.bat' DiskId='1' Source='sbt.bat' />
|
||||
<File Id='sbt' Name='sbt-launch.jar' DiskId='1' Source='sbt-launch.jar' />
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<Feature Id='SbtLauncher' Title='Sbt Launcher Script' Level='1'>
|
||||
<ComponentRef Id='SbtLauncherScript' />
|
||||
</Feature>
|
||||
</Product>
|
||||
</Wix>
|
||||
Loading…
Reference in New Issue