This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create WindowsDesktop sharedfx bundle installer (#7540)
* Copy ExecWithRetries from BuildTools Adds working dir, log importance to ExecWithRetries. Also Inline attemptMessage and add log importance comment. * Add WindowsDesktop sfx bundle installer, refactor Adds bundle creation support to the packaging-tools, and factors the framework pack and runtime WiX files into a single, more flexible, "product" set of WiX files. The old MSI generation directory is removed entirely: with the new "product" WiX files, the host and hostfxr MSI creation can move to the new system. The VS insertion nupkg generation code is also ported from PowerShell to MSBuild to fit the new system. The old system is still used for some macOS pkgs and the macOS bundle installer, some Debian/RPM packages, and some tarballs/zips.
- Loading branch information
Showing
94 changed files
with
2,218 additions
and
1,150 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
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 |
---|---|---|
@@ -1,2 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<!-- Before signing the bundles, the engines need to be injected back into the bundles. --> | ||
<Target Name="ReattachAllEnginesToBundles" | ||
BeforeTargets="RunArcadeSigning"> | ||
<MSBuild | ||
Projects="@(ProjectToBuild -> WithMetadataValue('SignPhase', 'Bundle'))" | ||
Targets="ReattachEngineToBundle" /> | ||
</Target> | ||
|
||
</Project> |
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 |
---|---|---|
@@ -1,2 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<ItemGroup> | ||
<StageProject Include="@(ProjectToBuild -> WithMetadataValue('SignPhase', 'BundleInstallerFiles'))" /> | ||
</ItemGroup> | ||
|
||
<!-- To sign the burn engines, they need to be extracted from the bundles using WiX tools. --> | ||
<Target Name="ExtractAllEngineBundles" | ||
BeforeTargets="RunArcadeSigning"> | ||
<MSBuild Projects="@(StageProject)" Targets="ExtractEngineBundle" /> | ||
</Target> | ||
|
||
</Project> |
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
20 changes: 20 additions & 0 deletions
20
src/pkg/packaging-tools/acquire-nuget-exe/acquire-nuget-exe.proj
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,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<UsingTask TaskName="DownloadFile" AssemblyFile="$(ArcadeSdkBuildTasksAssembly)" /> | ||
|
||
<!-- | ||
Acquire NuGet.exe, if not present. | ||
--> | ||
<Target Name="AcquireNuGetExeCore" | ||
Condition="!Exists('$(NuGetExeFile)')" | ||
DependsOnTargets="GetAcquireNuGetExeProperties"> | ||
<MakeDir Directories="$(NuGetExeToolDir)" /> | ||
<DownloadFile | ||
Uri="$(NuGetExeDownloadUrl)" | ||
DestinationPath="$(NuGetExeFile)" | ||
Overwrite="true" /> | ||
</Target> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)..\packaging-tools.targets" /> | ||
|
||
</Project> |
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,10 @@ | ||
<Project> | ||
<!-- | ||
Shared properties specific to bundle projects (bundleproj). | ||
--> | ||
|
||
<PropertyGroup> | ||
<GenerateExeBundle>true</GenerateExeBundle> | ||
</PropertyGroup> | ||
|
||
</Project> |
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,23 @@ | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- | ||
Shared targets specific to bundle projects (bundleproj). | ||
--> | ||
|
||
<Target Name="GetSharedFrameworkBundleInstallerProperties" | ||
BeforeTargets="GetInstallerProperties"> | ||
<Error | ||
Condition="'@(BundleComponentReference)' == ''" | ||
Text="Bundle project lacks references to components that it should bundle." /> | ||
|
||
<PropertyGroup> | ||
<InstallerName>$(ShortFrameworkName)-runtime</InstallerName> | ||
<WixProductMoniker>$(SharedFrameworkBrandName)</WixProductMoniker> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<!-- Target overrides (can't be shared with other package projects) --> | ||
|
||
<Target Name="Build" | ||
DependsOnTargets="GenerateInstallers" /> | ||
|
||
</Project> |
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
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
Oops, something went wrong.