mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 13:33:13 -07:00
Build macOS App Bundle
This commit is contained in:
parent
d4a88375ef
commit
105843e9f2
4 changed files with 42 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
||||||
.idea
|
.idea
|
||||||
build
|
build
|
||||||
cmake-build-*
|
cmake-build-*
|
||||||
|
.DS_store
|
||||||
|
|
|
@ -10,6 +10,7 @@ option(CHIAKI_GUI_ENABLE_QT_GAMEPAD "Use QtGamepad for Input" ON)
|
||||||
set(CHIAKI_VERSION_MAJOR 1)
|
set(CHIAKI_VERSION_MAJOR 1)
|
||||||
set(CHIAKI_VERSION_MINOR 0)
|
set(CHIAKI_VERSION_MINOR 0)
|
||||||
set(CHIAKI_VERSION_PATCH 0)
|
set(CHIAKI_VERSION_PATCH 0)
|
||||||
|
set(CHIAKI_VERSION ${CHIAKI_VERSION_MAJOR}.${CHIAKI_VERSION_MINOR}.${CHIAKI_VERSION_PATCH})
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
|
|
|
@ -59,3 +59,11 @@ if(CHIAKI_GUI_ENABLE_QT_GAMEPAD)
|
||||||
target_link_libraries(chiaki Qt5::Gamepad)
|
target_link_libraries(chiaki Qt5::Gamepad)
|
||||||
target_compile_definitions(chiaki PRIVATE CHIAKI_GUI_ENABLE_QT_GAMEPAD)
|
target_compile_definitions(chiaki PRIVATE CHIAKI_GUI_ENABLE_QT_GAMEPAD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set_target_properties(chiaki PROPERTIES
|
||||||
|
MACOSX_BUNDLE TRUE
|
||||||
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in"
|
||||||
|
MACOSX_BUNDLE_BUNDLE_NAME Chiaki
|
||||||
|
MACOSX_BUNDLE_BUNDLE_VERSION ${CHIAKI_VERSION}
|
||||||
|
MACOSX_BUNDLE_COPYRIGHT "thestr4ng3r (GPLv3)"
|
||||||
|
MACOSX_BUNDLE_GUI_IDENTIFIER "org.chiaki.chiaki")
|
32
gui/MacOSXBundleInfo.plist.in
Normal file
32
gui/MacOSXBundleInfo.plist.in
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleGetInfoString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_INFO_STRING}</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>${MACOSX_BUNDLE_ICON_FILE}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
|
||||||
|
<key>CSResourcesFileMapped</key>
|
||||||
|
<true/>
|
||||||
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
|
||||||
|
<key>NSHighResolutionCapable</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Loading…
Add table
Add a link
Reference in a new issue