Permalink
Browse files

customize Info.plist for macOS bundle

  • Loading branch information...
xiaoqiangwang committed Dec 20, 2018
1 parent ae11b71 commit aac6aa521fc71b220dfc3cd74f522731fe099fb5
Showing with 43 additions and 1 deletion.
  1. +7 −1 CMakeLists.txt
  2. +36 −0 cmake/MacOSXBundleInfo.plist.in
@@ -36,8 +36,14 @@ ENDIF(WIN32 AND MSVC)

IF(APPLE)
SET (PROGRAME QTerm)
SET (MACOSX_BUNDLE_VERSION $QTERM_VERSION)
SET (MACOSX_BUNDLE_BUNDLE_NAME ${PROGRAME})
SET (MACOSX_BUNDLE_GUI_IDENTIFIER "org.qterm")
SET (MACOSX_BUNDLE_INFO_STRING "${PROGRAME} ${QTERM_VERSION}")
SET (MACOSX_BUNDLE_BUNDLE_VERSION ${QTERM_VERSION})
SET (MACOSX_BUNDLE_LONG_VERSION_STRING ${QTERM_VERSION})
SET (MACOSX_BUNDLE_SHORT_VERSION_STRING "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}")
SET (MACOSX_BUNDLE_ICON_FILE QTerm.icns)
SET (MACOSX_BUNDLE_COPYRIGHT "The QTerm Project")
ELSE(APPLE)
SET (PROGRAME qterm)
ENDIF(APPLE)
@@ -0,0 +1,36 @@
<?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>NSHighResolutionCapable</key>
<true/>
<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>CFBundleLongVersionString</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
<key>CFBundleName</key>
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
</dict>
</plist>

0 comments on commit aac6aa5

Please sign in to comment.