From 40300c1e4f34ff0d47318f8609e4625375f751d7 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Wed, 20 Apr 2022 08:55:01 +0100 Subject: [PATCH] [Settings]Fix WinUI3 publish issues (#17817) * [Settings]Upgrade to WinAppSdk 1.0.3 * [Settings]Use the correct runtime identifier * [Settings]Include native dlls after proper publish * Update docs as well --- README.md | 2 +- doc/devdocs/readme.md | 2 +- installer/PowerToysSetup/PowerToys.wxs | 12 ++++++------ installer/PowerToysSetup/Product.wxs | 19 +------------------ .../Settings.UI/PowerToys.Settings.csproj | 4 ++-- .../InstallationPublishProfile.pubxml | 2 +- 6 files changed, 12 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index d3a1567bc4..0eb285ecdb 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Microsoft PowerToys is a set of utilities for power users to tune and streamline - [.NET Core 3.1.23 Desktop Runtime](https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-desktop-3.1.23-windows-x64-installer) or a newer 3.1.x runtime. This is needed currently for the Settings application. - [.NET 6.0.3 Desktop Runtime](https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-desktop-6.0.3-windows-x64-installer) or a newer 6.0.x runtime. - [Microsoft Edge WebView2 Runtime](https://go.microsoft.com/fwlink/p/?LinkId=2124703) bootstrapper. This will install the latest version. - - [Windows App SDK Runtime 1.0.1](https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads). This will install version 1.0.1 if this or newer version is not installed already. + - [Windows App SDK Runtime 1.0.3](https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads). This will install version 1.0.3 if this or newer version is not installed already. ### Via GitHub with EXE [Recommended] diff --git a/doc/devdocs/readme.md b/doc/devdocs/readme.md index c8f001d86b..e06f9b6d65 100644 --- a/doc/devdocs/readme.md +++ b/doc/devdocs/readme.md @@ -39,7 +39,7 @@ Once you've discussed your proposed feature/fix/etc. with a team member, and you 1. Windows 10 April 2018 Update (version 1803) or newer 2. Visual Studio Community/Professional/Enterprise 2022 -3. Install the [Windows App SDK 1.0.1 C# Visual Studio 2022 extension](https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads) +3. Install the [Windows App SDK 1.0.3 C# Visual Studio 2022 extension](https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads) 4. Once you've cloned and started the `PowerToys.sln`, in the solution explorer, if you see a dialog that says `install extra components`, click `install` ### Get Submodules to compile diff --git a/installer/PowerToysSetup/PowerToys.wxs b/installer/PowerToysSetup/PowerToys.wxs index 11c48956d3..5190ee24a6 100644 --- a/installer/PowerToysSetup/PowerToys.wxs +++ b/installer/PowerToysSetup/PowerToys.wxs @@ -96,16 +96,16 @@ Name="WindowsAppRuntimeInstall.exe" Compressed="no" Id="WinAppSDK101" - DownloadUrl="https://aka.ms/windowsappsdk/1.0/1.0.1/windowsappruntimeinstall-1.0.1-x64.exe" + DownloadUrl="https://aka.ms/windowsappsdk/1.0/1.0.3/windowsappruntimeinstall-1.0.3-x64.exe" RepairCommand="" Permanent="yes"> + Description="Windows App SDK 1.0.3 Runtime Install" + ProductName="Windows App SDK 1.0.3 Runtime Install" + Size="57090456" + Version="1.0.3.0" + Hash="1269BB136655325EF6D66A018269BDAB3921E56B" /> - - - + @@ -512,11 +510,6 @@ - - - - - @@ -949,13 +942,6 @@ - - - - - - - @@ -1033,9 +1019,6 @@ - - - diff --git a/src/settings-ui/Settings.UI/PowerToys.Settings.csproj b/src/settings-ui/Settings.UI/PowerToys.Settings.csproj index 5ed37546d2..88d5c00b9d 100644 --- a/src/settings-ui/Settings.UI/PowerToys.Settings.csproj +++ b/src/settings-ui/Settings.UI/PowerToys.Settings.csproj @@ -7,7 +7,7 @@ Microsoft.PowerToys.Settings.UI app.manifest x64 - win-x64 + win10-x64 true true None @@ -57,7 +57,7 @@ - + diff --git a/src/settings-ui/Settings.UI/Properties/PublishProfiles/InstallationPublishProfile.pubxml b/src/settings-ui/Settings.UI/Properties/PublishProfiles/InstallationPublishProfile.pubxml index ea944ca488..2ae59c976c 100644 --- a/src/settings-ui/Settings.UI/Properties/PublishProfiles/InstallationPublishProfile.pubxml +++ b/src/settings-ui/Settings.UI/Properties/PublishProfiles/InstallationPublishProfile.pubxml @@ -7,7 +7,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. FileSystem net6.0-windows10.0.18362.0 $(PowerToysRoot)\$(Platform)\$(Configuration)\Settings - win-$(Platform) + win10-$(Platform) false False False