From 83f5def41761668b0084022e7d56c0fcbea8bbd5 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 21 Jan 2022 03:16:27 +0200 Subject: [PATCH 40/40] installer_cross: Rename qt gui as qt5 See osdn #43619 Signed-off-by: Marko Lindqvist --- .../installer_cross/build_all_installers.sh | 10 +++--- .../create-freeciv-gtk-qt-nsi.sh | 31 ++++++++++++------- windows/installer_cross/installer_build.sh | 28 +++++++++++------ windows/installer_cross/winbuild.sh | 13 ++++---- 4 files changed, 50 insertions(+), 32 deletions(-) diff --git a/windows/installer_cross/build_all_installers.sh b/windows/installer_cross/build_all_installers.sh index e72bb23249..592ed06b79 100755 --- a/windows/installer_cross/build_all_installers.sh +++ b/windows/installer_cross/build_all_installers.sh @@ -59,12 +59,12 @@ else fi if test "x$CROSSER_QT5" != "xyes" ; then - QT="N/A" -elif ! ./installer_build.sh $DLLSPATH qt ; then + QT5="N/A" +elif ! ./installer_build.sh $DLLSPATH qt5 ; then RET=1 - QT="Fail" + QT5="Fail" else - QT="Success" + QT5="Success" fi # sdl2-client comes with gtk4 modpack installer @@ -87,7 +87,7 @@ else fi echo "Gtk3.22: $GTK322" -echo "Qt: $QT" +echo "Qt5: $QT5" echo "Sdl2: $SDL2" echo "Ruledit: $RULEDIT" diff --git a/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh b/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh index 0e89c69db8..d177731b4e 100755 --- a/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh +++ b/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh @@ -1,15 +1,21 @@ #!/bin/sh -# ./create-freeciv-gtk-qt-nsi.sh [mp gui] [unistall setup script] +# ./create-freeciv-gtk-qt-nsi.sh [mp gui] [exe id] [unistall setup script] + +if test "x$7" != "x" ; then + EXE_ID="$7" +else + EXE_ID="$3" +fi if test "x$6" != "x" ; then - MPGUI_ID="$6" + MPEXE_ID="$6" else - MPGUI_ID="$3" + MPEXE_ID="$EXE_ID" fi -if test "x$7" != "x" && ! test -x "$7" ; then - echo "$7 not an executable script" >&2 +if test "x$8" != "x" && ! test -x "$8" ; then + echo "$8 not an executable script" >&2 exit 1 fi @@ -23,7 +29,8 @@ SetCompressor /SOLID lzma !define APPNAME "Freeciv" !define VERSION $2 !define GUI_ID $3 -!define MPGUI_ID $MPGUI_ID +!define EXE_ID $EXE_ID +!define MPEXE_ID $MPEXE_ID !define GUI_NAME $4 !define WIN_ARCH $5 !define APPID "\${APPNAME}-\${VERSION}-\${GUI_ID}" @@ -120,12 +127,12 @@ cat <&2 exit 1 @@ -187,8 +192,8 @@ if test "x$GUI" = "xruledit" ; then exit 1 fi - if ! add_qt_env $DLLSPATH $INSTDIR ; then - echo "Copying Qt environment failed!" >&2 + if ! add_qt5_env $DLLSPATH $INSTDIR ; then + echo "Copying Qt5 environment failed!" >&2 exit 1 fi @@ -204,7 +209,7 @@ if test "x$GUI" = "xruledit" ; then exit 1 fi else - if ! cp freeciv-server.cmd freeciv-$GUI.cmd freeciv-mp-$FCMP.cmd $INSTDIR/ + if ! cp freeciv-server.cmd freeciv-$CLIENT.cmd freeciv-mp-$FCMP.cmd $INSTDIR/ then echo "Adding cmd-files failed!" >&2 exit 1 @@ -230,14 +235,14 @@ else echo "Copying SDL2 environment failed!" >&2 exit 1 fi ;; - qt) + qt5) if ! cp freeciv-ruledit.cmd $INSTDIR/ then echo "Adding cmd-file failed!" >&2 exit 1 fi - if ! add_qt_env $DLLSPATH $INSTDIR ; then - echo "Copying Qt environment failed!" >&2 + if ! add_qt5_env $DLLSPATH $INSTDIR ; then + echo "Copying Qt5 environment failed!" >&2 exit 1 fi ;; gtk4) @@ -254,13 +259,18 @@ else exit 1 fi else + if test "x$GUI" = "xqt5" ; then + EXE_ID="qt" + else + EXE_ID="$GUI" + fi if test "x$GUI" = "xgtk3.22" || test "x$GUI" = "xgtk4" ; then UNINSTALLER="helpers/uninstaller-helper-gtk3.sh" else UNINSTALLER="" fi if ! ./create-freeciv-gtk-qt-nsi.sh $INSTDIR $VERREV $GUI $GUINAME \ - $SETUP $MPGUI $UNINSTALLER > Freeciv-$SETUP-$VERREV-$GUI.nsi + $SETUP $MPGUI $EXE_ID $UNINSTALLER > Freeciv-$SETUP-$VERREV-$GUI.nsi then exit 1 fi diff --git a/windows/installer_cross/winbuild.sh b/windows/installer_cross/winbuild.sh index b2751d3be6..022b287589 100755 --- a/windows/installer_cross/winbuild.sh +++ b/windows/installer_cross/winbuild.sh @@ -7,9 +7,9 @@ # This script is licensed under Gnu General Public License version 2 or later. # See COPYING available from the same location you got this script. -# Version 2.3.5 (13-Jan-22) +# Version 2.3.6 (21-Jan-22) -WINBUILD_VERSION="2.3.5" +WINBUILD_VERSION="2.3.6" MIN_WINVER=0x0601 # Windows 7 CROSSER_FEATURE_LEVEL=2.2 @@ -70,19 +70,20 @@ elif test "x$2" != "x" ; then SINGLE_GUI=true GUIP="-$2" SERVER="yes" - if test "x$2" = "xqt" ; then + if test "x$2" = "xqt5" ; then RULEDIT="yes" + CLIENTS="qt" else RULEDIT="no" + CLIENTS="$2" fi - CLIENTS="$2" case $2 in gtk3) FCMP="gtk3" ;; sdl2) FCMP="gtk4" ;; gtk3.22) FCMP="gtk3" ;; gtk4) FCMP="gtk4" ;; - qt) FCMP="qt" - NLS="--disable-nls" ;; + qt5) FCMP="qt" + NLS="--disable-nls" ;; *) echo "Unknown gui \"$2\"!" >&2 exit 1 ;; esac -- 2.34.1