From 478fddaf57d31212f5280a128b42ec4ee7cd5d2a Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 13 Feb 2020 03:19:18 +0100 Subject: [PATCH] macOS: add version to info.plist --- monero-wallet-gui.pro | 4 ++++ share/Info.plist | 6 ++++++ 2 files changed, 10 insertions(+) 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 @@ CFBundleIdentifier org.monero-project.monero-wallet-gui + CFBundleVersion + @VERSION_LONG@ + + CFBundleShortVersionString + @VERSION@ + NSSupportsAutomaticGraphicsSwitching