Skip to content
Permalink
Browse files

macOS: add version to info.plist

  • Loading branch information
selsta committed Feb 13, 2020
1 parent eb7fae9 commit 8fa260947cdc32fbbf48d031ee7f73fa8b1bc58f
Showing with 10 additions and 0 deletions.
  1. +4 −0 monero-wallet-gui.pro
  2. +6 −0 share/Info.plist
@@ -518,11 +518,15 @@ DISTFILES += \

VERSION = $$cat('version.js', lines)
VERSION = $$find(VERSION, 'GUI_VERSION')
VERSION_LONG = $$replace(VERSION, '.*\"(.*)\"', '\1')
VERSION = $$replace(VERSION, '.*(\d+\.\d+\.\d+\.\d+).*', '\1')

# windows application icon
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
@@ -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/>

0 comments on commit 8fa2609

Please sign in to comment.
You can’t perform that action at this time.