Creating metadata files
The main metadata file for macOS applications is called Info.plist and, like the desktop entry for Linux, it is a structured text file. For a Go project, it is best to edit the text directly rather than using the installed Xcode tools. This file contains a list of key-value pairs that describe the application we've built. It's important that you do not change the values for CFBundlePackageType or CFBundleInfoDictionaryVersion as these identify the file to macOS as an application.
The main keys for customization are CFBundleExecutable, which sets the name of the executable file; CFBundleName, for the human-visible name of the application; and CFBundleIconFile, to specify the icon filename. It's important to set sensible ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access