aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2020-02-13 03:19:18 +0100
committerselsta <selsta@sent.at>2020-02-14 14:32:04 +0100
commit478fddaf57d31212f5280a128b42ec4ee7cd5d2a (patch)
treeb52a464167fb8fc469b52e4c14c9661c015b07ee
parenteb7fae92ef0ed01a1d17e56fac217c6450716ccc (diff)
downloadmonzero-gui-478fddaf57d31212f5280a128b42ec4ee7cd5d2a.tar.gz
monzero-gui-478fddaf57d31212f5280a128b42ec4ee7cd5d2a.tar.xz
monzero-gui-478fddaf57d31212f5280a128b42ec4ee7cd5d2a.zip
macOS: add version to info.plist
-rw-r--r--monero-wallet-gui.pro4
-rw-r--r--share/Info.plist6
2 files changed, 10 insertions, 0 deletions
diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro
index 2a49e2b2..8309eab2 100644
--- a/monero-wallet-gui.pro
+++ b/monero-wallet-gui.pro
@@ -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
diff --git a/share/Info.plist b/share/Info.plist
index 438443d2..7484844d 100644
--- a/share/Info.plist
+++ b/share/Info.plist
@@ -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/>