Skip to content

Commit 5f6325d

Browse files
authored
Fix sdk artifact classification (#46493)
1 parent 1ea37d3 commit 5f6325d

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

eng/Signing.props

+20-23
Original file line numberDiff line numberDiff line change
@@ -87,33 +87,30 @@
8787
</ItemGroup>
8888

8989
<ItemGroup Condition="'$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1'">
90-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.zip" Condition=" '$(PublishBinariesAndBadge)' == 'true' " />
91-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.tar.gz" Condition=" '$(PublishBinariesAndBadge)' == 'true' " />
92-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.pkg" />
93-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.exe" />
94-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.deb" />
95-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.rpm" />
96-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.msi" />
97-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.cab" />
98-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.svg" Condition=" '$(PublishBinariesAndBadge)' == 'true' " />
90+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.zip" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
91+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.tar.gz" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
92+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.pkg" IsShipping="true" />
93+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.exe" IsShipping="true" />
94+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.deb" IsShipping="true" />
95+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.rpm" IsShipping="true" />
96+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.msi" IsShipping="true" />
97+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.cab" IsShipping="true" />
98+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.svg" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
9999
<!-- Only publish this file from windows x64 so that we don't end up with duplicates -->
100-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)productVersion.txt"
101-
Condition=" '$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" />
102-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)sdk-productVersion.txt"
103-
Condition=" '$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" />
104-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)productCommit-*.json" Condition=" '$(PublishBinariesAndBadge)' == 'true' " />
105-
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)productCommit-*.txt" Condition=" '$(PublishBinariesAndBadge)' == 'true' " />
106-
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.swr" />
107-
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.msi" />
108-
<SdkArtifact Condition="'$(PublishBinariesAndBadge)' != 'false'" Include="$(ArtifactsNonShippingPackagesDir)*.tar.gz" />
100+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)productVersion.txt" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" />
101+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)sdk-productVersion.txt" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" />
102+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)productCommit-*.json" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
103+
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)productCommit-*.txt" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
104+
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.swr" IsShipping="false" />
105+
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.msi" IsShipping="false" />
106+
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.tar.gz" IsShipping="false" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
107+
109108
<!-- dotnet-toolset zips are added above for specific builds only. -->
110-
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)dotnet-toolset*.zip"
111-
Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" />
112-
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.zip" Condition="'$(PublishBinariesAndBadge)' != 'false'" Exclude="$(ArtifactsNonShippingPackagesDir)dotnet-toolset*.zip" />
113-
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.pkg" />
109+
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)dotnet-toolset*.zip" IsShipping="false" Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" />
110+
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.zip" IsShipping="false" Condition="'$(PublishBinariesAndBadge)' == 'true'" Exclude="$(ArtifactsNonShippingPackagesDir)dotnet-toolset*.zip" />
111+
<SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.pkg" IsShipping="false" />
114112

115113
<Artifact Include="@(SdkArtifact)"
116-
IsShipping="$([System.String]::Copy('%(RecursiveDir)').StartsWith('Shipping'))"
117114
RelativeBlobPath="$(RelativeBlobPathParent)/%(Filename)%(Extension)">
118115
<ChecksumPath Condition="$([System.String]::Copy('%(Filename)%(Extension)').EndsWith('.wixpack.zip')) != 'true'">%(FullPath).sha512</ChecksumPath>
119116
</Artifact>

0 commit comments

Comments
 (0)