Skip to content
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

Set macOS min version to 12.0 Monterey #1025

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

shinra-electric
Copy link
Contributor

I've noticed in Discord that the minimum macOS version is 12 Monterey, but the actual minimum version set on the app bundle is 10.10 Yosemite.

This PR adds the minimum version key to Info.plist, with a MACOSX_MINIMUM_SYSTEM_VERSION var.
This var is then set to 12.0 in CmakeLists.txt

The purpose of setting the minimum version is so that users on Big Sur or lower will not be able to open the app, and they will be informed that it can't be run on their OS and they will be prompted to update.

This should hopefully reduce the number of issues reported on GitHub and Discord.

Testing:
Ensure the CI builds and check that the app bundle advertises the required OS to be 12 or later.
Screenshot 2023-11-19 at 23 34 40

Will prevent Cemu from opening on unsupported systems, informing the user.
This sets the MACOSX_MINIMUM_SYSTEM_VERSION var to 12.0, which will prevent the app from opening on lower systems. 

The OS will provide an alert to the user, prompting them to update.
@shinra-electric
Copy link
Contributor Author

I'd like to check how the CI does, but I suspect it might fail as CMake only handles a few of the Info.plist variables:
https://cmake.org/cmake/help/latest/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html

The way around this is to just set a global variable somewhere.

@shinra-electric
Copy link
Contributor Author

shinra-electric commented Nov 23, 2023

The changes seems to have worked for the macOS bundle:
Screenshot 2023-11-23 at 13 10 09

(I doubt if the ubuntu CI failure is related to this PR...)
Edit: The Ubuntu CI failure was related to a curl failure for bzip2. Not related to this PR.
All checks have passed

@Exzap Exzap merged commit 09409a5 into cemu-project:main Nov 27, 2023
5 checks passed
@Exzap
Copy link
Member

Exzap commented Nov 27, 2023

thanks!

@shinra-electric shinra-electric deleted the macos-min-version branch November 27, 2023 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants