Add support for macOS - #34
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.
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 <Margen67@users.noreply.github.com>

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.ExtractToDirectoryto extract the release once it's been downloaded. However, this method will not preserve file aliases on macOS, and sinceOpenRCT2.appcontains several of them, the extracted application won't launch. To fix this, this PR calls/usr/bin/dittoin a subprocess to extract the.zip, which will preserve the files properly..gitignoreis updated to ignore.ds_storeand other hidden files that macOS likes to make