From: Matt Mitchell Date: Wed, 11 Nov 2020 23:15:31 +0000 (-0800) Subject: Add signing information to asset manifest (port #41889 and #42688) (#43896) X-Git-Tag: submit/tizen/20210909.063632~4669 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=905a367719110c04197bf3a186a64109e7a3a219;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Add signing information to asset manifest (port #41889 and #42688) (#43896) * Post build signing * Add PostBuildSign flag --- diff --git a/eng/Signing.props b/eng/Signing.props index 471473f..5ebb3ba 100644 --- a/eng/Signing.props +++ b/eng/Signing.props @@ -1,140 +1,174 @@ + + + + - true + true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eng/pipelines/common/download-artifact-step.yml b/eng/pipelines/common/download-artifact-step.yml index 6bb0462..b3f4973 100644 --- a/eng/pipelines/common/download-artifact-step.yml +++ b/eng/pipelines/common/download-artifact-step.yml @@ -19,6 +19,6 @@ steps: - task: ExtractFiles@1 displayName: 'Unzip ${{ parameters.displayName }}' inputs: - archiveFilePatterns: $(Build.SourcesDirectory)/__download__/${{ parameters.artifactName }}/${{ parameters.artifactFileName }} + archiveFilePatterns: $(Build.SourcesDirectory)/__download__/${{ parameters.artifactName }}/**/${{ parameters.artifactFileName }} destinationFolder: ${{ parameters.unpackFolder }} cleanDestinationFolder: ${{ parameters.cleanUnpackFolder }} diff --git a/eng/pipelines/installer/jobs/base-job.yml b/eng/pipelines/installer/jobs/base-job.yml index 5ace7f3..64d4da3 100644 --- a/eng/pipelines/installer/jobs/base-job.yml +++ b/eng/pipelines/installer/jobs/base-job.yml @@ -560,7 +560,8 @@ jobs: condition: and( succeeded(), eq(variables['_BuildConfig'], 'Release'), - ne(variables['DisableVSPublish'], 'true')) + ne(variables['DisableVSPublish'], 'true'), + ne(variables['PostBuildSign'], 'true')) - template: steps/upload-job-artifacts.yml parameters: diff --git a/eng/pipelines/official/jobs/prepare-signed-artifacts.yml b/eng/pipelines/official/jobs/prepare-signed-artifacts.yml index 42c8bb6..7b0eba0 100644 --- a/eng/pipelines/official/jobs/prepare-signed-artifacts.yml +++ b/eng/pipelines/official/jobs/prepare-signed-artifacts.yml @@ -10,7 +10,7 @@ jobs: dependsOn: ${{ parameters.dependsOn }} pool: name: NetCoreInternal-Pool - queue: buildpool.windows.10.amd64.vs2017 + queue: buildpool.windows.10.amd64.vs2019 # Double the default timeout. timeoutInMinutes: 120 workspace: @@ -33,7 +33,8 @@ jobs: zipSources: false feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json continueOnError: false - condition: and(succeeded(), in(variables['SignType'], 'real', 'test')) + condition: and(succeeded(), + in(variables['SignType'], 'real', 'test')) - task: DownloadBuildArtifacts@0 displayName: Download IntermediateUnsignedArtifacts diff --git a/eng/pipelines/runtime-official.yml b/eng/pipelines/runtime-official.yml index 62c07cb..91e8529 100644 --- a/eng/pipelines/runtime-official.yml +++ b/eng/pipelines/runtime-official.yml @@ -32,6 +32,8 @@ variables: value: .NETCore - name: _DotNetValidationArtifactsCategory value: .NETCoreValidation +- name: PostBuildSign + value: false stages: - stage: Build diff --git a/src/installer/publish/Directory.Build.targets b/src/installer/publish/Directory.Build.targets index 7c618f5..24576c8 100644 --- a/src/installer/publish/Directory.Build.targets +++ b/src/installer/publish/Directory.Build.targets @@ -15,10 +15,16 @@ $(DownloadDirectory)IntermediateUnsignedArtifacts\Windows_x64\Shipping\a.nupkg --> + + + + @@ -26,7 +32,7 @@ + Exclude="@(DownloadedSymbolNupkgFile);@(DownloadedNupkgFile);@(DownloadedWixPdbFile)" /> + + + + + + + + true + + @@ -55,72 +65,19 @@ Properties="DownloadDirectory=$(DownloadDirectory)" /> - + - $(PackagesUrl) Manifest.xml $(ArtifactsLogDir)AssetManifest/$(AssetManifestFilename) $(ArtifactsObjDir)TempWorkingDir\$([System.Guid]::NewGuid())\ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $(PackagesUrl) - Manifest_Installers.xml - $(ArtifactsLogDir)AssetManifest/$(AssetManifestFilename) - - - $(ArtifactsObjDir)TempWorkingDir\$([System.Guid]::NewGuid())\ - + $(ProductionVersion) $(ProductVersion) - @@ -129,29 +86,43 @@ Lines="$(ProductVersionTxtContents)" Overwrite="true" Encoding="ASCII" /> - + + + + + $(InstallersRelativePath)%(Filename)%(Extension) + true $(InstallersRelativePath)%(Filename)%(Extension) Checksum + true $(InstallersRelativePath)productVersion.txt + true @@ -184,8 +154,7 @@ FindDownloadedArtifacts; SignPackages; CreateChecksums; - PreparePublishToAzureBlobFeed; - PreparePublishFilesToAzureBlobFeed"> + PreparePublishToAzureBlobFeed">