-
Notifications
You must be signed in to change notification settings - Fork 377
Emit the hostArchitectures attribute when building the macOS bundle. #7232
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
Conversation
sdmaclea
left a comment
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.
That change looks almost correct. The attribute is hostArchitectures, note the final s
I don't know how to check this works correctly, so only visually inspected.
I also don't know how to test this on my machine easily. Since Rosetta is already installed. I guess I would have to figure out how to remove it....
I think we will eventually want to set os-version min to 11.3 for Apple Silicon, because 11.2 and earlier are horribly unstable.
|
The best way to test this would be to build Arcade locally and set the |
|
I built this on my M1, the generated <options customize="never" require-scripts="false" hostArchitectures="arm64"/>
<welcome file="welcome.html" mime-type="text/html"/>
<conclusion file="conclusion.html" mime-type="text/html"/>
<volume-check>
<allowed-os-versions>
<os-version min="10.13"/>
</allowed-os-versions>
</volume-check>It even worked when there was already a |
|
Apple has not provided a published mechanism to uninstall Rosetta 2, so I cannot check this actually fixes the issue on my M1. |
|
It should not overwrite if the attribute is already present. It leaves the attribute as is. |
|
As the distribution file looks correct, we'll go with this until we know we need something else. |
@sdmaclea can you validate that this change allows us to build an ARM64 distribution bundle on non Big Sur MacOS machines?
Contributes to dotnet/runtime#48388
Fixes #7233