Packaging release

Now that the metadata has been created, we can create the directory structure required for a macOS application bundle. The location of the files is important, and is set out as follows:

File pathDescription

myapp.app/Contents/Info.plist The application metadata outlined in the preceding
myapp.app/Contents/Resources/myapp.icns The application icon in ICNS format
myapp.app/Contents/MacOS/myapp The application executable

After creating these directories and moving files to the correct location, you have a complete application bundle. This can be executed by double-clicking the icon and it can be distributed in this state. Installation consists of dragging this icon into the Applications folder of the computer, as ...

Get Hands-On GUI Application Development in Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.