From ba9d17297d23a164e6bf153dcb09e5643ea2de09 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 9 Feb 2023 07:09:24 +0200 Subject: [PATCH 23/23] 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 d7397b5723..3263f9a0b3 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="$5" +if test "$5" != "win32" && test "$5" != "win64" ; then + ARCH_INST_PART="-${ARCH_KEY_PART}" +else + ARCH_INST_PART="" +fi + cat < +ARCH_KEY_PART="$3" +if test "$3" != "win32" && test "$3" != "win64" ; then + ARCH_INST_PART="-${ARCH_KEY_PART}" +else + ARCH_INST_PART="" +fi + cat < +ARCH_KEY_PART="$3" +if test "$3" != "win32" && test "$3" != "win64" ; then + ARCH_INST_PART="-${ARCH_KEY_PART}" +else + ARCH_INST_PART="" +fi + cat <