-
Notifications
You must be signed in to change notification settings - Fork 359
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
Enable Unpacking, repacking, signing, and notarization of .pkg files and .app bundles #15206
Enable Unpacking, repacking, signing, and notarization of .pkg files and .app bundles #15206
Conversation
…-unpack-repack-pkg
Co-authored-by: Ella Hathaway <[email protected]>
Co-authored-by: Ella Hathaway <[email protected]>
…ol-unpack-repack-pkg
…athaway/arcade into signtool-unpack-repack-pkg
Readddy for review! |
@@ -20,6 +20,7 @@ | |||
</PropertyGroup> | |||
|
|||
<Import Project="BuildStep.props" /> | |||
<Import Project="TargetFrameworkDefaults.props" /> |
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.
I don't see this import being used anywhere below. I don't think that the Arcade TFM properties can be used.
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.
I think I had this in there to use NetToolCurrent for the command line tools. Updated
@@ -57,6 +58,9 @@ | |||
|
|||
<!-- SN is only available on Windows --> | |||
<SNBinaryPath Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(NuGetPackageRoot)sn\$(SNVersion)\sn.exe</SNBinaryPath> | |||
|
|||
<!-- .pkgs and .app bundle tooling is only available on MacOS --> | |||
<PkgToolPath Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(NuGetPackageRoot)microsoft.dotnet.macospkg\$(MicrosoftDotNetMacOsPkgVersion)\tools\net10.0\any\Microsoft.Dotnet.MacOsPkg.dll</PkgToolPath> |
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.
Is there a way to use a prop for net10.0? I think the hardcoded version will cause issues when we eventually update the target framework.
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.
$(NetToolCurrent). I'll try it.
Co-authored-by: Ella Hathaway <[email protected]>
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.
I cannot approve because I’m technically the author of the PR, but the changes look good to me. Thanks for all the work you did on this, Matt.
Test build with mac signing enabled: https://dev.azure.com/dnceng/internal/_build/results?buildId=2622013&view=results |
Related to #14438
This is the second part of #14438. This PR integrates the pkg tool, introduced in #15205, into SignTool. More specifically, this PR enables the unpacking and repacking of .pkgs and nested .app bundles within SignTool & adds tests & test data for this functionality into SignTool.Tests.
This is a rather large change, including quite a lot of refactoring as SignTool is becoming a bit bloated. Highlights
There is more follow on work to be done here. Signtool is due for a major refactor to deal with all the various archive types it now supports. There is far too much "If ".