You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Avalonia UI is cross-platform, it is possible to distribute the program for macOS.
I took some time to look into this, and found out that Ryujinx has a set of build scripts to do this. So I copied and pasted them into my fork, and with only a few changes, it just works!
Modifications I made:
All libs needed by this app are already universal binaries (both x86_64 and arm64e), so I removed the python script to do this;
To make the folder structure more straightforward, I added PublishSingleFile=true as argument to the dotnet publish command;
To make the app independent from external .Net Runtime, I also added --self-contained true;
The self-contained Avalonia UI app is too big, so I added PublishTrimmed=true to reduce binary size.
The output macOS App Bundle has folder structure like this:
I have only tested these scripts on an M1 Mac. Linux support for these scripts should be BROKEN for now. And these is NO support for GitHub Actions yet.
Since Avalonia UI is cross-platform, it is possible to distribute the program for macOS.
I took some time to look into this, and found out that Ryujinx has a set of build scripts to do this. So I copied and pasted them into my fork, and with only a few changes, it just works!
Modifications I made:
PublishSingleFile=true
as argument to thedotnet publish
command;--self-contained true
;PublishTrimmed=true
to reduce binary size.The output macOS App Bundle has folder structure like this:
Usage:
The app will be in
./distribution/macos/publish/
Please refer to the scripts in this commit for more information.
Here is a binary file if anyone wants to test it:
raztools-audio-macos-universal.7z.zip
The text was updated successfully, but these errors were encountered: