From 5e91aa45a580732fcd165000152cceed07961f66 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Mon, 25 Jul 2022 13:20:25 -0700 Subject: [PATCH] Re-enable the ability to use in-build signing (#72690) Re-enable in-build signing (as an option, not on by default yet). In constrast to how in-build signing was performed previously for any installer artifacts, the new in-build signing uses the same exact approach as post-build signing does today. Pass all top-level artifacts and wixpacks as ItemsToSign, and let the signing infrastructure do all the unpacking and repacking. Also increase the timeout in the prepare-artifacts stage. --- eng/Signing.props | 5 +++-- eng/pipelines/official/jobs/prepare-signed-artifacts.yml | 2 +- src/installer/Directory.Build.props | 7 +++++++ src/installer/prepare-artifacts.proj | 16 +++++++++++++++- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/eng/Signing.props b/eng/Signing.props index 13481c5..b4fb10e 100644 --- a/eng/Signing.props +++ b/eng/Signing.props @@ -51,14 +51,15 @@ - + - + + diff --git a/eng/pipelines/official/jobs/prepare-signed-artifacts.yml b/eng/pipelines/official/jobs/prepare-signed-artifacts.yml index 0bed326..4a3acf7 100644 --- a/eng/pipelines/official/jobs/prepare-signed-artifacts.yml +++ b/eng/pipelines/official/jobs/prepare-signed-artifacts.yml @@ -12,7 +12,7 @@ jobs: name: NetCore1ESPool-Internal demands: ImageOverride -equals build.windows.amd64.vs2022 # Double the default timeout. - timeoutInMinutes: 180 + timeoutInMinutes: 240 workspace: clean: all diff --git a/src/installer/Directory.Build.props b/src/installer/Directory.Build.props index b22d8e2..44582bc 100644 --- a/src/installer/Directory.Build.props +++ b/src/installer/Directory.Build.props @@ -15,4 +15,11 @@ want to ensure we use the correct packages. --> true + + + + $([System.IO.Path]::GetDirectoryName('$(ArcadeSdkBuildTasksAssembly)'))\..\ + $(ArcadeSdkMSBuildProjectDir)Sign.proj + + diff --git a/src/installer/prepare-artifacts.proj b/src/installer/prepare-artifacts.proj index 228c234..595c8e4 100644 --- a/src/installer/prepare-artifacts.proj +++ b/src/installer/prepare-artifacts.proj @@ -57,12 +57,26 @@ + + + + + + DependsOnTargets="GetProductVersions;FindDownloadedArtifacts;SignArtifacts;CreateChecksums"> Manifest.xml $(ArtifactsLogDir)AssetManifest/$(AssetManifestFilename) -- 2.7.4