Skip to content

Commit 0d8ea06

Browse files
authored
Use Kind Artifact metadata (#4981)
1 parent 6b5926e commit 0d8ea06

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

eng/Publishing.props

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<!-- This target only runs when EnableDefaultArtifacts=true which is a single build leg in CI. -->
3333
<Target Name="GenerateProductVersionFiles"
3434
DependsOnTargets="GetNonStableProductVersion"
35-
BeforeTargets="PublishToAzureDevOpsArtifacts"
35+
BeforeTargets="AddRelativeBlobPathToBlobArtifacts;PublishToAzureDevOpsArtifacts"
3636
Condition="'$(ShouldGenerateProductVersionFiles)' == 'true'">
3737
<!-- Retrieve the runtime pack version -->
3838
<MSBuild Projects="$(RepoRoot)src/windowsdesktop/src/sfx/Microsoft.WindowsDesktop.App.Runtime.sfxproj"
@@ -52,17 +52,16 @@
5252
Encoding="ASCII" />
5353

5454
<ItemGroup>
55-
<Artifact Include="@(ProductVersionFile)"
56-
RelativeBlobPath="WindowsDesktop/$(NonStableProductVersion)/%(Filename)%(Extension)" />
55+
<Artifact Include="@(ProductVersionFile)" Kind="Blob" />
5756
</ItemGroup>
5857
</Target>
5958

60-
<Target Name="AddRelativeBlobPathToInstallerArtifacts"
59+
<Target Name="AddRelativeBlobPathToBlobArtifacts"
6160
DependsOnTargets="GetNonStableProductVersion"
6261
BeforeTargets="PublishToAzureDevOpsArtifacts"
6362
AfterTargets="GenerateChecksumsFromArtifacts">
6463
<ItemGroup>
65-
<Artifact Condition="'%(Artifact.PublishFlatContainer)' == 'true' and '%(Artifact.RelativeBlobPath)' == ''"
64+
<Artifact Condition="'%(Artifact.Kind)' == 'Blob' and '%(Artifact.RelativeBlobPath)' == ''"
6665
RelativeBlobPath="WindowsDesktop/$(NonStableProductVersion)/%(Filename)%(Extension)" />
6766
</ItemGroup>
6867
</Target>

eng/Signing.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<Artifact Include="$(ArtifactsPackagesDir)**\*.zip;
1818
$(ArtifactsPackagesDir)**\*.exe;
1919
$(ArtifactsPackagesDir)**\*.msi"
20+
Kind="Blob"
2021
IsShipping="$([System.String]::Copy('%(RecursiveDir)').StartsWith('Shipping'))">
2122
<!-- Exclude wixpack.zip files from checksum generation -->
2223
<ChecksumPath Condition="$([System.String]::Copy('%(Filename)%(Extension)').EndsWith('.wixpack.zip')) != 'true'">%(FullPath).sha512</ChecksumPath>
@@ -28,7 +29,7 @@
2829
<Artifact Include="$(ArtifactsPackagesDir)**\Microsoft.WindowsDesktop.App.Runtime.*.nupkg;
2930
$(ArtifactsPackagesDir)**\VS.Redist.Common.WindowsDesktop.*.nupkg"
3031
IsShipping="$([System.String]::Copy('%(RecursiveDir)').StartsWith('Shipping'))"
31-
PublishFlatContainer="false" />
32+
Kind="Package" />
3233
</ItemGroup>
3334

3435
</Project>

0 commit comments

Comments
 (0)