|
3 | 3 | <!-- The one use of ArtifactsDir in Publish.proj adds an additional slash, confusing itself. -->
|
4 | 4 | <ArtifactsDir>$(ArtifactsDir.Substring(0, $([MSBuild]::Subtract($(ArtifactsDir.Length), 1))))</ArtifactsDir>
|
5 | 5 |
|
6 |
| - <PublishDependsOnTargets>$(PublishDependsOnTargets);_PublishInstallers</PublishDependsOnTargets> |
| 6 | + <PublishDependsOnTargets>$(PublishDependsOnTargets);_PublishInstallersAndChecksums</PublishDependsOnTargets> |
7 | 7 |
|
8 | 8 | <_UploadPathRoot>aspnetcore</_UploadPathRoot>
|
9 | 9 | </PropertyGroup>
|
10 | 10 |
|
11 |
| - <!-- $(InstallersOutputPath) and $(SymbolsOutputPath) are not defined. Root Directory.Build.props is not imported. --> |
| 11 | + <!-- $(InstallersOutputPath), $(SymbolsOutputPath), and $(ChecksumExtensions) are not defined. Root Directory.Build.props is not imported. --> |
12 | 12 | <ItemGroup>
|
13 | 13 | <!-- Include our "loose" PDBs when publishing symbols. -->
|
14 | 14 | <FilesToPublishToSymbolServer Include="$(ArtifactsDir)\symbols\**\*.pdb" />
|
15 | 15 |
|
16 |
| - <!-- Prepare for _PublishInstallers target. --> |
| 16 | + <!-- Prepare for _PublishInstallersAndChecksums target. --> |
17 | 17 | <_InstallersToPublish Remove="@(_InstallersToPublish)" />
|
18 | 18 | <_InstallersToPublish Include="$(ArtifactsDir)\packages\**\*.jar" UploadPathSegment="jar" />
|
19 | 19 | <_InstallersToPublish Include="$(ArtifactsDir)\packages\**\*.pom" UploadPathSegment="jar" />
|
|
27 | 27 | Condition=" '$(PublishInstallerBaseVersion)' == 'true' " />
|
28 | 28 | <_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.wixlib" UploadPathSegment="Runtime" />
|
29 | 29 | <_InstallersToPublish Include="$(ArtifactsDir)\installers\**\*.zip" UploadPathSegment="Runtime" />
|
| 30 | + <_ChecksumsToPublish Include="$(ArtifactsDir)\**\*.sha512" /> |
30 | 31 | </ItemGroup>
|
31 | 32 |
|
32 |
| - <Target Name="_PublishInstallers"> |
| 33 | + <Target Name="_PublishInstallersAndChecksums"> |
33 | 34 | <!--
|
34 | 35 | This target is defined in eng/targets/Packaging.targets and included in every C# and F# project.
|
35 | 36 | We use Microsoft.AspNetCore.DeveloperCertificates.XPlat because it is a nonshipping package, and we need a non-stable version string to use as our publish location.
|
|
48 | 49 | <!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows. -->
|
49 | 50 | <ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT'" />
|
50 | 51 |
|
| 52 | + <ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)"> |
| 53 | + <PublishFlatContainer>true</PublishFlatContainer> |
| 54 | + <RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath> |
| 55 | + </ItemsToPushToBlobFeed> |
| 56 | + |
51 | 57 | <ItemsToPushToBlobFeed Include="@(_InstallersToPublish)">
|
52 | 58 | <IsShipping>true</IsShipping>
|
53 | 59 | <ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
|
|
0 commit comments