From 1ed14674e89a1aaf9192e99ce1e18b3239a471d3 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 9 Feb 2023 07:05:50 +0200 Subject: [PATCH 33/33] Msys2: Distinguish registry keys and directories per MSYSTEM Namespace registry keys and install directories so they don't get overwritten by parallel installations. See osdn #46663 Signed-off-by: Marko Lindqvist --- .../create-freeciv-gtk-qt-nsi.sh | 27 +++++++++++++------ .../create-freeciv-ruledit-nsi.sh | 25 ++++++++++++----- .../create-freeciv-sdl2-nsi.sh | 25 ++++++++++++----- 3 files changed, 55 insertions(+), 22 deletions(-) diff --git a/windows/installer_msys2/create-freeciv-gtk-qt-nsi.sh b/windows/installer_msys2/create-freeciv-gtk-qt-nsi.sh index 8b3814d47f..f767d80a0b 100644 --- a/windows/installer_msys2/create-freeciv-gtk-qt-nsi.sh +++ b/windows/installer_msys2/create-freeciv-gtk-qt-nsi.sh @@ -14,6 +14,13 @@ else MPEXE_ID="$EXE_ID" fi +ARCH_KEY_PART="$6" +if test "$6" != "win32" && test "$6" != "win64" ; then + ARCH_INST_PART="-${ARCH_KEY_PART}" +else + ARCH_INST_PART="" +fi + cat < +ARCH_KEY_PART="$4" +if test "$4" != "win32" && test "$4" != "win64" ; then + ARCH_INST_PART="-${ARCH_KEY_PART}" +else + ARCH_INST_PART="" +fi + cat < +ARCH_KEY_PART="$4" +if test "$4" != "win32" && test "$4" != "win64" ; then + ARCH_INST_PART="-${ARCH_KEY_PART}" +else + ARCH_INST_PART="" +fi + cat <