-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Implement building from multiple WiX sources * Add a test for custom WiX sources in WindowsPlugin * Fix code formatting * Remove unnecessary overwrite flag * Fix for SBT 0.13
- Loading branch information
1 parent
01ac7a8
commit fe0c8f9
Showing
8 changed files
with
105 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
enablePlugins(WindowsPlugin) | ||
|
||
name := "custom-wix" | ||
version := "0.1.0" | ||
|
||
// make sure we don't somehow use the generated script | ||
wixFile in Windows := { | ||
sys.error("wixFile shouldn't have been called") | ||
} | ||
|
||
wixFiles := List( | ||
sourceDirectory.value / "wix" / "main.wsx", | ||
sourceDirectory.value / "wix" / "ui.wsx" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % sys.props("project.version")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
|
||
<!-- Use * to generate product ID on every build --> | ||
<Product | ||
Id="*" | ||
Name="Custom WiX build" | ||
Language="1033" | ||
Version="1.0.0.0" | ||
Manufacturer="sbt-native-packager" | ||
UpgradeCode="424a691a-627d-47c2-b5b7-39fed4fe69e9"> | ||
|
||
<Package | ||
Compressed="yes" | ||
InstallScope="perMachine" | ||
Manufacturer="software architects" | ||
Description="Demo installer for learning WiX basics." | ||
Comments="(c) 2012 software architects" /> | ||
|
||
<Media Id="1" Cabinet="custom.cab" EmbedCab="yes" /> | ||
|
||
<!--Directory structure--> | ||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="ProgramFilesFolder"> | ||
<Directory Id="CustomDir" Name="Custom WiX build" /> | ||
</Directory> | ||
</Directory> | ||
|
||
<!--Components--> | ||
<DirectoryRef Id="CustomDir"> | ||
<Component Id="CustomComponent" Guid="37de77f3-e716-486b-a859-600ba4edc466"> | ||
<CreateFolder/> | ||
</Component> | ||
</DirectoryRef> | ||
|
||
<!--Features--> | ||
<Feature | ||
Id="CustomFeature" | ||
Title="Custom WiX feature" | ||
Level="1"> | ||
|
||
<ComponentRef Id="CustomComponent" /> | ||
</Feature> | ||
|
||
<UIRef Id="CustomUI"/> | ||
</Product> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<Fragment> | ||
<!-- No actual UI - just something to reference --> | ||
<UI Id="CustomUI" /> | ||
</Fragment> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Run the windows packaging. | ||
> windows:packageBin | ||
$ exists target/windows/custom-wix.msi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters