mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
Merge pull request #2773
478fdda
macOS: add version to info.plist (selsta)
This commit is contained in:
commit
f9b9d43ac1
2 changed files with 10 additions and 0 deletions
|
@ -518,6 +518,7 @@ DISTFILES += \
|
||||||
|
|
||||||
VERSION = $$cat('version.js', lines)
|
VERSION = $$cat('version.js', lines)
|
||||||
VERSION = $$find(VERSION, 'GUI_VERSION')
|
VERSION = $$find(VERSION, 'GUI_VERSION')
|
||||||
|
VERSION_LONG = $$replace(VERSION, '.*\"v(.*)\"', '\1')
|
||||||
VERSION = $$replace(VERSION, '.*(\d+\.\d+\.\d+\.\d+).*', '\1')
|
VERSION = $$replace(VERSION, '.*(\d+\.\d+\.\d+\.\d+).*', '\1')
|
||||||
|
|
||||||
# windows application icon
|
# windows application icon
|
||||||
|
@ -525,4 +526,7 @@ RC_ICONS = images/appicon.ico
|
||||||
|
|
||||||
# mac Info.plist & application icon
|
# mac Info.plist & application icon
|
||||||
QMAKE_INFO_PLIST = $$PWD/share/Info.plist
|
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
|
ICON = $$PWD/images/appicon.icns
|
||||||
|
|
|
@ -26,6 +26,12 @@
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>org.monero-project.monero-wallet-gui</string>
|
<string>org.monero-project.monero-wallet-gui</string>
|
||||||
|
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>@VERSION_LONG@</string>
|
||||||
|
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>@VERSION@</string>
|
||||||
|
|
||||||
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue