From e3874e36e04081fe826924b041bfc6759001b0bb Mon Sep 17 00:00:00 2001 From: Dino Date: Tue, 27 Dec 2022 20:38:47 -0500 Subject: [PATCH] Ticket #46342 --- platforms/macos/homebrew-appbundle.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/platforms/macos/homebrew-appbundle.sh b/platforms/macos/homebrew-appbundle.sh index d08ffc3dd8..f48eb4b1af 100755 --- a/platforms/macos/homebrew-appbundle.sh +++ b/platforms/macos/homebrew-appbundle.sh @@ -56,11 +56,11 @@ if ! echo " CFBundleIdentifier freeciv CFBundleVersion - 3.1.0-alpha + VER CFBundleShortVersionString - 3.1.0-alpha + VER CFBundleExecutable - ../bin/freeciv-gtk3.22 + ../bin/freeciv-qt CFBundleIconFile freeciv-client.icns CFBundleDevelopmentRegion @@ -77,6 +77,11 @@ if ! echo " exit 1 fi +VSTRING=`./fc_version` + +# substitute VSTRING into Info.plist +sed -i '' -e "s/VER/${VSTRING}/g" "${CONTENTSDIR}Info.plist" + if ! echo -n "APPL????" > "${CONTENTSDIR}PkgInfo" ; then echo "Failed to create file \"${CONTENTSDIR}PkgInfo\"" >&2 exit 1 @@ -93,8 +98,8 @@ if ! meson setup .. \ -Dack_experimental=true \ -Druledit=false \ -Dsyslua=true \ - -Dclients=gtk3.22 \ - -Dfcmp=gtk3 \ + -Dclients=gtk3.22,qt \ + -Dfcmp=qt \ -Dprefix="$CONTENTSDIR" || ! ninja || ! ninja install -- 2.31.0