I've tried the solutions given here:
https://github.com/AvaloniaUI/Avalonia/issues/1705
None of them hide the console on published OSX builds. I would like the user to launch the program and only see the GUI window. Is there a solution for this?
NSubsys is for Windows EXE files only so theres currently no solution for that, that i know of :(
cc @danwalmsley @kekekeks any idea guys?
You need to construct an app bundle. Here is an example one with our control catalog: bundle.tar.gz
It will unpack a directory with .app "extension"
The output of dotnet publish should go to Contents/MacOS (just delete existing files from the archive), icon to Resources/icon.icns.
Make sure to also edit Info.plist file.
Thank you! That works perfectly.
Most helpful comment
You need to construct an app bundle. Here is an example one with our control catalog: bundle.tar.gz
It will unpack a directory with
.app"extension"The output of
dotnet publishshould go toContents/MacOS(just delete existing files from the archive), icon toResources/icon.icns.Make sure to also edit
Info.plistfile.