-
Notifications
You must be signed in to change notification settings - Fork 19
Add support for macOS #34
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
Currently the CI does not build or publish a macOS version, are you able to add this? Without it, no macOS version will be released. |
I added a macOS build to the CI action, though it needs to use scripts to build/package it, since the process is a bit more complicated for macOS (it needs to build both x64 and arm64 versions, combine them, and then build the proper .app structure for them). The action doesn't sign and notarize the app, since I'm not entirely sure of the best way to handle that for CI. |
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.
Builds fine locally using build-mac.sh
with .NET 9.0. Packages fine into a bundle using package-mac.sh
. The resulting launcher runs fine, downloads and runs releases as well:

Looks like the CI job needs work, though? I'd try restarting it, but it seems I don't have the required rights for the OpenLauncher repository.
3dd56c5
to
1e940ee
Compare
Add build scripts for macOS Added macOS App Icon
Co-authored-by: Margen67 <[email protected]>
This PR adds support for OpenLauncher on macOS. Currently the launcher builds and runs on macOS, but can't download new releases or launch the game.
ZipFile.ExtractToDirectory
to extract the release once it's been downloaded. However, this method will not preserve file aliases on macOS, and sinceOpenRCT2.app
contains several of them, the extracted application won't launch. To fix this, this PR calls/usr/bin/ditto
in a subprocess to extract the.zip
, which will preserve the files properly..gitignore
is updated to ignore.ds_store
and other hidden files that macOS likes to make