Uh oh!
There was an error while loading. Please reload this page.
Create a macOS universal binary - #313
Conversation
| <_LipoOuputPath>$(PublishDir)\osx-universal\$(AssemblyName)</_LipoOuputPath> | ||
| </PropertyGroup> | ||
| <Exec Command="lipo @(_RidSpecificSingleFile, ' ') -create -output $(_LipoOuputPath)" Condition="$([MSBuild]::IsOSPlatform('OSX'))" /> |
There was a problem hiding this comment.
I don't know if you care, but this won't work if any of these paths have spaces in them.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
baronfel
commented
Oct 29, 2024
Tested this on a m2 machine and it works as expected: |
joeloff
commented
Oct 29, 2024
Don't think we do notarization for this. |
| </EmbeddedResource> | ||
| </ItemGroup> | ||
| <Target Name="PublishMacOSUniversalBinary"> |
There was a problem hiding this comment.
I need help making the macOS build call this - it's one of the questions in the issue description :)
There was a problem hiding this comment.
probably here: https://github.com/dotnet/cli-lab/blob/25e91f1d39ad446131c0fe4bc998c5a33e766773/.vsts-ci.yml#L137C1-L144C33
You can tweak the .yml, then push your branch internal to trigger an official build against your branch, that's the only way to verify yaml changes
9aa602d to
9256923Compare9256923 to
e0ea109Compare
Adds a target that
lipoto create a universal binary (thanks @rolfbjarne!)Things we need to think about:
cc @joeloff / @marcpopMSFT