-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Always generate checksums as last part of publish job #20367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f7af521
Always generate checksums as last part of publish job
wtgodbe e064146
Initialize props correctly
wtgodbe bc03cf1
Fix wildcard
wtgodbe 0ea4bf6
Import Arcade SDK
wtgodbe e9eec32
Add NoWarn MSB4011
wtgodbe f2f899f
Make import conditional on GenerateChecksums
wtgodbe 8985bef
Select specific files to checksum
wtgodbe f97ea6a
Respond to feedback
wtgodbe 109804c
AfterTargets -> BeforeTargets
wtgodbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project> | ||
|
||
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(GenerateChecksums)' == 'true'" /> | ||
|
||
<PropertyGroup Condition="'$(GenerateChecksums)' == 'true'"> | ||
<!-- The one use of ArtifactsDir in Publish.proj adds an additional slash, confusing itself. --> | ||
<ArtifactsDir Condition=" HasTrailingSlash('$(ArtifactsDir)') ">$(ArtifactsDir.Substring(0, $([MSBuild]::Subtract($(ArtifactsDir.Length), 1))))</ArtifactsDir> | ||
dougbu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<!-- $(InstallersOutputPath) is not defined. Root Directory.Build.props is not imported. --> | ||
<InstallersOutputPath>$(ArtifactsDir)\installers\</InstallersOutputPath> | ||
</PropertyGroup> | ||
|
||
<Target Name="PopulateGenerateChecksumItems" | ||
Condition="'$(GenerateChecksums)' == 'true'" | ||
AfterTargets="Build" | ||
BeforeTargets="GenerateChecksums" > | ||
|
||
<ItemGroup> | ||
<InstallerFiles Include="$(InstallersOutputPath)**\*.msi" /> | ||
<InstallerFiles Include="$(InstallersOutputPath)**\*.exe" /> | ||
<InstallerFiles Include="$(InstallersOutputPath)**\*.zip" /> | ||
<InstallerFiles Include="$(InstallersOutputPath)**\*.tar.gz" /> | ||
<InstallerFiles Include="$(InstallersOutputPath)**\*.wixlib" /> | ||
<InstallerFiles Include="$(InstallersOutputPath)**\*.rpm" /> | ||
<GenerateChecksumItems Include="%(InstallerFiles.Identity)" > | ||
<DestinationPath>%(FullPath).sha512</DestinationPath> | ||
</GenerateChecksumItems> | ||
</ItemGroup> | ||
|
||
</Target> | ||
|
||
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(GenerateChecksums)' == 'true'" /> | ||
|
||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project gets imported here: https://github.com/dotnet/arcade/blob/cc4af3898310cf2826d78de453dff4a25905b888/src/Microsoft.DotNet.Arcade.Sdk/tools/AfterSigning.proj#L29