Set macOS Info.plist

This commit is contained in:
Aaron Raimist 2019-01-02 20:58:43 -06:00
parent bbc4fedd20
commit 446c9194bf
3 changed files with 30 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build
.DS_Store

24
macOS/Info.plist Normal file
View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>${ASSETCATALOG_COMPILER_APPICON_NAME}</string>
<key>CFBundleIdentifier</key>
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
<key>CFBundleShortVersionString</key>
<string>${QMAKE_FULL_VERSION}</string>
<key>CFBundleVersion</key>
<string>${QMAKE_FULL_VERSION}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>

View File

@ -83,7 +83,10 @@ win32 {
} }
mac { mac {
QMAKE_TARGET_BUNDLE_PREFIX = org.eu.encom.spectral
VERSION = 0.0.$$system(git rev-list --count HEAD)
ICON = assets/img/icon.icns ICON = assets/img/icon.icns
QMAKE_INFO_PLIST = macOS/Info.plist
} }
HEADERS += \ HEADERS += \