Avalonia: Hide console window on Mac OSX?

Created on 5 Oct 2018  路  4Comments  路  Source: AvaloniaUI/Avalonia

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?

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 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.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheColonel2688 picture TheColonel2688  路  3Comments

GitHubington picture GitHubington  路  3Comments

RUSshy picture RUSshy  路  4Comments

maxkatz6 picture maxkatz6  路  3Comments

CreateLab picture CreateLab  路  3Comments