Repository navigation
Microbuild signing - #47
Conversation
…to ProducesNoOutput.Settings.targets.
|
If you'd like to see the output of a signed build, it's on \internal_drop_root\roslyn-project-system\dotnet-core-sdk-testing. If you don't know what the drop root is, you can find it in the MicroBuild variable definitions, or just message me and I'll give you the link. Don't want to post it on a repo that'll eventually go public. |
|
|
||
| <!-- If RealSigning --> | ||
| <Message Text="Performing Real Signing" Condition="'$(SignType)'=='real'"/> | ||
| <Exec Command="$(SignTool) -nugetPackagesPath "$(NuGet_Packages)" -config "@(SigningConfig)" "$(OutDir.TrimEnd('\'))"" |
There was a problem hiding this comment.
This change sort of conflicts with my latest PR #46. Basically, the output assembly is getting placed into the PackagesLayout folder during build of the tasks assembly. That's the assembly that needs to be signed.
What do you think about hooking the signing tool up during the Build of the tasks assembly, instead of in an outside project?
There was a problem hiding this comment.
The part that tells MicroBuild what to sign is a combination of the path at the end and SignToolConfig.json. I'm not sure how this conflicts with that PR, we'll just have to pass $(OutDir)PackagesLayoutDir as the path instead of just $(OutDir). Is there something I'm missing?
There was a problem hiding this comment.
The tasks assembly is located in 2 places in $(OutDir)PackagesLayoutDir, once in netcoreapp1.0 and once in net46. I'd rather we sign the file once, and then place/copy the signed file into the packages layout directory. So I think I'll move the "layout" code out of the Tasks.csproj and instead into the NuGet.proj file, which solves all these problems.
|
|
||
| <Target Name="SignPackages"> | ||
|
|
||
| <MSBuild BuildInParallel="true" |
There was a problem hiding this comment.
We should ensure that BuildNuGetPackages is dependent on this target, or else we will build the nuget packages in parallel, and then we won't get our signed assemblies in the nuget packages.
|
This looks good, @333fred. Thanks for taking care of this.
|
…es from the signing config
Use jspm_packages instead modules
Advance WORKLOAD_BUNDLE_SHA256 from f086d161 (kit dotnet#46) to 27c54c62, the kit dotnet#47 repack of openharmony-workload-1.0.0-preview.28: the Sdk pack carries the FIX-PREEMPT-RAW shell (ui abc 370,240/4b439e83, pages/Index.ets 326,953/69dc09e0, provenance bb5a1758; headless 24,324/798b2477 unchanged), the unchanged host (297,888/7b1694d9), the P2c skills[].uris targets (77,401/9d0389d4) and tasks (40,960/0c186779); the kits haps were rebuilt with the FIX-A11YFLYOUT MAUI slice (d5384d6cc3) and the Ref/Runtime managed packs were rebuilt from the same sources. Installer tests: 43/43 + 10/10 + 5/5, fetch-nativeaot --local content check OK (r2 OpenSSL shim 5/5).
Advance WORKLOAD_BUNDLE_SHA256 from 27c54c62 (kit dotnet#47) to 3b62cee2, the kit dotnet#48 repack of openharmony-workload-1.0.0-preview.28: the Sdk pack carries the MULTIWINDOW-S shell (ui abc 375,268/9cd2b4c3, pages/Index.ets with the window mode declaration + size-change subscription, provenance updated; headless 24,324/798b2477 unchanged) and the rebuilt host (FPS48 60 Hz XComponent frame-rate vote + AOT-STARTUP overlay first-use mount and identical app-context replay skip + interp R2R=0); the kit haps were rebuilt with the MULTIWINDOW-S MAUI slice (ed02203bfd) and the Ref/Runtime managed packs were rebuilt from the same sources. Installer tests: 43/43 + 10/10 + 5/5, fetch-nativeaot --local content check OK (r2 OpenSSL shim 5/5).
This adds PublicSigning to local builds, and DelaySigning+RealSigning when running on MicroBuild. I've also updated our MicroBuild definition to include the
-RealSignparameter, which won't have an effect until this PR is merged.Tagging @eerhardt @piotrpMSFT @livarcocc @brthor @natidea @dotnet/project-system for review.