From 0e3c8463954e1ccc556cc79536828cffdaee12f6 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Tue, 15 Oct 2024 14:48:31 -0700 Subject: [PATCH 1/3] Enable using -sign in VMR scenarios --- eng/Signing.props | 54 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/eng/Signing.props b/eng/Signing.props index f76a7aa22c248..429a7ec4484b7 100644 --- a/eng/Signing.props +++ b/eng/Signing.props @@ -1,21 +1,9 @@ - - true + false - - - @@ -37,12 +25,6 @@ - - - - - @@ -55,14 +37,30 @@ - - - - - + + + + + %(FullPath).sha512 + + - - - + + + - + + \ No newline at end of file From 0d045ee7bde0a97d4535112fb02cfe667ab01af1 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Tue, 15 Oct 2024 14:51:08 -0700 Subject: [PATCH 2/3] Remove old PrepareArtifacts controls and remove remaining infrastructure from multi-phase signing (which has been removed since wixpacks were added) --- eng/SubsetValidation.targets | 6 ------ eng/Subsets.props | 6 +++--- src/installer/prepare-artifacts.proj | 12 ++---------- 3 files changed, 5 insertions(+), 19 deletions(-) diff --git a/eng/SubsetValidation.targets b/eng/SubsetValidation.targets index 182f711594142..e8e2a22465f26 100644 --- a/eng/SubsetValidation.targets +++ b/eng/SubsetValidation.targets @@ -5,12 +5,6 @@ Each subset has its own 'Project' items so that a project in the build can depend on a whole subset, and the dependency on the subset is disregarded automatically when Subset doesn't contain it. - - %(ProjectToBuild.SignPhase): Indicates this project must be built before a certain signing - phase. Projects can depend on 'signing/stages/Sign.proj' to wait until all projects - that are part of a stage are complete. This allows the build to perform complex container - signing that isn't (can't be?) supported by Arcade's single pass, such as MSIs and bundles: - https://github.com/dotnet/arcade/issues/388 --> diff --git a/eng/Subsets.props b/eng/Subsets.props index d2ed52fb20114..d23e0690d6a90 100644 --- a/eng/Subsets.props +++ b/eng/Subsets.props @@ -462,17 +462,17 @@ - + - + - + diff --git a/src/installer/prepare-artifacts.proj b/src/installer/prepare-artifacts.proj index 393b50eafe206..f4e30a2efdd1f 100644 --- a/src/installer/prepare-artifacts.proj +++ b/src/installer/prepare-artifacts.proj @@ -15,12 +15,9 @@ - - true - @@ -68,18 +65,13 @@ - + DownloadDirectory=$(DownloadDirectory)" /> - + $(InnerBuildArgs) $(FlagParameterPrefix)restore $(FlagParameterPrefix)build $(FlagParameterPrefix)publish + $(InnerBuildArgs) $(FlagParameterPrefix)sign $(InnerBuildArgs) $(FlagParameterPrefix)arch $(TargetArch) $(InnerBuildArgs) $(FlagParameterPrefix)os $(TargetOS)