Create a macOS application bundle
masterOn macOS, you must wrap your binary in an application bundle. Create a folder structure like this:
SystrayApp.app/
Contents/
Info.plist
MacOS/
go-executable
Resources/
SystrayApp.icnsTo avoid a blurry icon/text, add this to Info.plist:
<key>NSHighResolutionCapable</key>
<string>True</string>To prevent the app from showing in the Dock, add this to Info.plist:
<key>LSUIElement</key>
<string>1</string>