|
1 | 1 | <Project>
|
2 | 2 |
|
3 | 3 | <PropertyGroup>
|
4 |
| - <!-- The FullNugetVersion.version file only gets produced in the initial build pass. --> |
5 |
| - <RelativeBlobPathParent Condition="'$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1'">Sdk/$([System.IO.File]::ReadAllText('$(ArtifactsTmpDir)FullNugetVersion.version').Trim())</RelativeBlobPathParent> |
| 4 | + <RelativeBlobPathParent>Sdk/$([System.IO.File]::ReadAllText('$(ArtifactsTmpDir)FullNugetVersion.version').Trim())</RelativeBlobPathParent> |
6 | 5 | <PublishBinariesAndBadge Condition="'$(PublishBinariesAndBadge)' == ''">true</PublishBinariesAndBadge>
|
7 | 6 | </PropertyGroup>
|
8 | 7 |
|
|
89 | 88 | PublishFlatContainer="false" />
|
90 | 89 | </ItemGroup>
|
91 | 90 |
|
92 |
| - <ItemGroup Condition="'$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1'"> |
| 91 | + <!-- Only publish this file from win-x64 so that we don't end up with duplicates. --> |
| 92 | + <ItemGroup Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1')"> |
| 93 | + <SdkArtifact Include="$(ArtifactsShippingPackagesDir)productVersion.txt" IsShipping="true" /> |
| 94 | + <SdkArtifact Include="$(ArtifactsShippingPackagesDir)sdk-productVersion.txt" IsShipping="true" /> |
| 95 | + </ItemGroup> |
| 96 | + |
| 97 | + <ItemGroup> |
93 | 98 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.zip" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
|
94 | 99 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.tar.gz" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
|
95 | 100 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.pkg" IsShipping="true" />
|
|
99 | 104 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.msi" IsShipping="true" />
|
100 | 105 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.cab" IsShipping="true" />
|
101 | 106 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)*.svg" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
|
102 |
| - <!-- Only publish this file from windows x64 so that we don't end up with duplicates --> |
103 |
| - <SdkArtifact Include="$(ArtifactsShippingPackagesDir)productVersion.txt" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" /> |
104 |
| - <SdkArtifact Include="$(ArtifactsShippingPackagesDir)sdk-productVersion.txt" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true'" /> |
105 | 107 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)productCommit-*.json" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
|
106 | 108 | <SdkArtifact Include="$(ArtifactsShippingPackagesDir)productCommit-*.txt" IsShipping="true" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
|
107 | 109 |
|
|
110 | 112 | <SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.tar.gz" IsShipping="false" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
|
111 | 113 | <SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.zip" IsShipping="false" Condition="'$(PublishBinariesAndBadge)' == 'true'" />
|
112 | 114 | <SdkArtifact Include="$(ArtifactsNonShippingPackagesDir)*.pkg" IsShipping="false" />
|
| 115 | + </ItemGroup> |
113 | 116 |
|
| 117 | + <ItemGroup> |
114 | 118 | <Artifact Include="@(SdkArtifact)"
|
115 | 119 | RelativeBlobPath="$(RelativeBlobPathParent)/%(Filename)%(Extension)">
|
116 | 120 | <ChecksumPath Condition="$([System.String]::Copy('%(Filename)%(Extension)').EndsWith('.wixpack.zip')) != 'true'">%(FullPath).sha512</ChecksumPath>
|
|
0 commit comments