-
Notifications
You must be signed in to change notification settings - Fork 43
Windows: add build scripts for the installer #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> | ||
<PropertyGroup> | ||
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<OutputName>installer</OutputName> | ||
<OutputType>Bundle</OutputType> | ||
<ProjectGuid>8ae3ad4d-2df4-42b7-890e-decdd5cead0b</ProjectGuid> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProductVersion Condition=" '$(ProductVersion)' == '' ">0.0.0</ProductVersion> | ||
<ProductVersion>$(ProductVersion)</ProductVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<OutputPath>build\</OutputPath> | ||
<IntermediateOutputPath>build\obj\</IntermediateOutputPath> | ||
<DefineSolutionProperties>false</DefineSolutionProperties> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(WixTargetsPath)" /> | ||
|
||
<PropertyGroup> | ||
<DefineConstants>ProductVersion=$(ProductVersion);MSI_LOCATION=$(MSI_LOCATION);</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<WixExtension Include="WixBalExtension"> | ||
<HintPath>$(WixExtDir)\WixBalExtension.dll</HintPath> | ||
<Name>WixBalExtension</Name> | ||
</WixExtension> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="installer.wxs" /> | ||
</ItemGroup> | ||
</Project> |
This file contains hidden or 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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"> | ||
<Bundle Name="Swift" Version="$(var.ProductVersion)" Manufacturer="swift.org" UpgradeCode="8c75f32a-7bdf-4c61-abf6-c7e1c4b8fbf6"> | ||
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> | ||
<bal:WixStandardBootstrapperApplication LicenseUrl="" LogoFile="Resources/swift.png" SuppressOptionsUI="yes" SuppressRepair="no" /> | ||
</BootstrapperApplicationRef> | ||
|
||
<Chain> | ||
<MsiPackage SourceFile="$(var.MSI_LOCATION)\toolchain.msi" Compressed="yes"> | ||
<MsiProperty Name="INSTALL_DEBUGINFO" Value="[INSTALL_DEBUGINFO]" /> | ||
</MsiPackage> | ||
<MsiPackage SourceFile="$(var.MSI_LOCATION)\sdk.msi" Compressed="yes" /> | ||
<MsiPackage SourceFile="$(var.MSI_LOCATION)\devtools.msi" Compressed="yes" /> | ||
<MsiPackage SourceFile="$(var.MSI_LOCATION)\runtime.msi" Compressed="yes" /> | ||
<MsiPackage SourceFile="$(var.MSI_LOCATION)\icu.msi" Compressed="yes" /> | ||
</Chain> | ||
</Bundle> | ||
</Wix> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this image comping from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I yanked it from swift.org
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should mention that if you have a better way to get the project logo, I'm happy to use that, I don't really have any issue with adjusting the content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the Resources directory located, is it in swift-installer-scripts repo or another location?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in the same repository, it is being created as part of this commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developer.apple.com/swift/resources/ at the bottom of the page it contains logos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you able to use svg format?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, thats where I originally grabbed the image from. I don't think that the SVG format works for this, which is why I have the png.