swift-project / pilotclient

Cross-platform cross-simulator pilot client for virtual air traffic networks
https://swift-project.org
GNU General Public License v3.0
93 stars 27 forks source link

Build MacOS executables as application bundles #230

Closed ltoenning closed 10 months ago

ltoenning commented 10 months ago

With application bundles, the executables are directly executed as GUI application (without terminal) and contain metadata like the icon file or the possibility to request microphone permission.

For now, I hardcoded all values in the Info.plist files. In the future we can might utilize the automatic generation with CMake [1]. But this requires a non-default template because this does not support NSMicrophoneUsageDescription and other keys out of the box.

[1] https://cmake.org/cmake/help/latest/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html