Merge pull request #2773

478fdda macOS: add version to info.plist (selsta)
This commit is contained in:
luigi1111 2020-02-19 22:09:43 -05:00
commit f9b9d43ac1
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
2 changed files with 10 additions and 0 deletions

View File

@ -518,6 +518,7 @@ DISTFILES += \
VERSION = $$cat('version.js', lines)
VERSION = $$find(VERSION, 'GUI_VERSION')
VERSION_LONG = $$replace(VERSION, '.*\"v(.*)\"', '\1')
VERSION = $$replace(VERSION, '.*(\d+\.\d+\.\d+\.\d+).*', '\1')
# windows application icon
@ -525,4 +526,7 @@ RC_ICONS = images/appicon.ico
# mac Info.plist & application icon
QMAKE_INFO_PLIST = $$PWD/share/Info.plist
macx {
QMAKE_POST_LINK += sed -i "''" -e "s/@VERSION@/$$VERSION/g" -e "s/@VERSION_LONG@/$$VERSION_LONG/g" "$$sprintf("%1/%2/%3.app", $$OUT_PWD, $$DESTDIR, $$TARGET)/Contents/Info.plist";
}
ICON = $$PWD/images/appicon.icns

View File

@ -26,6 +26,12 @@
<key>CFBundleIdentifier</key>
<string>org.monero-project.monero-wallet-gui</string>
<key>CFBundleVersion</key>
<string>@VERSION_LONG@</string>
<key>CFBundleShortVersionString</key>
<string>@VERSION@</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>