From a9d6b28f1eb87782ab44e646449f786c8a45ecd6 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Wed, 20 Jul 2022 10:41:49 -0700 Subject: [PATCH] Re-support in-build signing (#14165) Add back in support for in-build signing. This is actually even simpler than it was before, because arcade added support for signing wixpacks. So there is no need to do the iterative sign->pack->sign->pack process that was previously common in any repo that creates an installer. Instead, the normal sign target in the arcade SDK build process will simply process all of the files to sign. Post-build signing remains the default, but will be flipped once verification is complete --- eng/Signing.props | 11 +- src/redist/redist.csproj | 2 - src/redist/targets/GenerateLayout.targets | 3 +- src/redist/targets/GenerateMSIs.targets | 12 +- src/redist/targets/Signing.targets | 222 ---------------------- 5 files changed, 14 insertions(+), 236 deletions(-) delete mode 100644 src/redist/targets/Signing.targets diff --git a/eng/Signing.props b/eng/Signing.props index 5372bc186..cf6e0c8a7 100644 --- a/eng/Signing.props +++ b/eng/Signing.props @@ -1,12 +1,19 @@ - - + + + + + + + + + 3PartySHA2 diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj index c735a1fb8..d9b868ecc 100644 --- a/src/redist/redist.csproj +++ b/src/redist/redist.csproj @@ -48,6 +48,4 @@ - - diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets index c6df06096..5cd571953 100644 --- a/src/redist/targets/GenerateLayout.targets +++ b/src/redist/targets/GenerateLayout.targets @@ -572,8 +572,7 @@ RetargetTools; CrossgenLayout; LayoutAppHostTemplate; - GeneratePrecomputedRarCache; - SignLayout" + GeneratePrecomputedRarCache" BeforeTargets="AfterBuild"> diff --git a/src/redist/targets/GenerateMSIs.targets b/src/redist/targets/GenerateMSIs.targets index 5ab1cbfb5..527bc988c 100644 --- a/src/redist/targets/GenerateMSIs.targets +++ b/src/redist/targets/GenerateMSIs.targets @@ -307,7 +307,7 @@ - - - - - - - - - - - - - - <_DryRun>true - <_DryRun Condition="'$(OfficialBuild)' == 'true'">false - - <_TestSign>false - <_TestSign Condition="'$(DotNetSignType)' == 'test'">true - - <_DesktopMSBuildRequired>false - <_DesktopMSBuildRequired Condition="'$(_DryRun)' != 'true' and '$(MSBuildRuntimeType)' == 'Core'">true - - - - - - - - - <_DesktopMSBuildPath Condition="$(_DesktopMSBuildRequired)">$(_VSInstallDir)\MSBuild\15.0\Bin\msbuild.exe - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -