From c050ee39e0ad93d6ce1b1d80635143e6fd99b596 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Wed, 9 Jul 2025 00:44:26 +0300
Subject: [PATCH 50/50] Update msys2 environment to 250707 level

- Update to upstream snapshot 250622
- Add sdl3-image and sdl3-ttf packages

See RM #1392

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 doc/README.msys2                               | 10 ++++++----
 .../windows/installer_msys2/Makefile.meson     | 18 +++++++++---------
 2 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/doc/README.msys2 b/doc/README.msys2
index a43f769569..9bf4fdaf34 100644
--- a/doc/README.msys2
+++ b/doc/README.msys2
@@ -10,11 +10,11 @@ using MSYS2 from https://www.msys2.org/
 ==============
 
 Current official premade MSYS2 environment version info:
-[premade]:  msys2-freeciv-win64-250216.7z
-[upstream]: https://repo.msys2.org/distrib/x86_64/msys2-x86_64-20241208.exe
+[premade]:  msys2-freeciv-win64-250707.7z
+[upstream]: https://repo.msys2.org/distrib/x86_64/msys2-x86_64-20250622.exe
 
-See chapter "Premade environment" for what these mean. The info
-is located here for quick reference for the specific freeciv revision.
+See chapter "Premade environment" for what these mean. The info is
+located here on top for quick reference for the specific freeciv revision.
 
 
  Status
@@ -171,6 +171,8 @@ Following packages have been installed:
 - mingw-w64-<arch>-SDL2_image
 - mingw-w64-<arch>-SDL2_ttf
 - mingw-w64-<arch>-SDL2_gfx
+- mingw-w64-<arch>-sdl3-image
+- mingw-w64-<arch>-sdl3-ttf
 - mingw-w64-<arch>-imagemagick
 - mingw-w64-x86_64-qt5-base
 - mingw-w64-x86_64-qt5-svg
diff --git a/platforms/windows/installer_msys2/Makefile.meson b/platforms/windows/installer_msys2/Makefile.meson
index 81387ea5b7..384d86325e 100644
--- a/platforms/windows/installer_msys2/Makefile.meson
+++ b/platforms/windows/installer_msys2/Makefile.meson
@@ -62,12 +62,8 @@ DLLPATH_PREFIX=/$(ARCHDIR)/bin/
 
 ifeq ($(CI),yes)
 ICUVER=77
-SVTAV1ENV=libSvtAv1Enc-3.dll
-SNDFILES=libwavpack-1.dll libxmp.dll
 else
-ICUVER=76
-SVTAV1ENV=libSvtAv1Enc-2.dll
-SNDFILES=libmodplug-1.dll
+ICUVER=77
 endif
 
 #
@@ -205,7 +201,8 @@ SOUND_DLLS := \
 	libvorbisfile-3.dll \
 	libvorbis-0.dll \
 	libogg-0.dll \
-	${SNDFILES}
+	libwavpack-1.dll \
+	libxmp.dll
 
 COMMON_DLLS := \
 	libcairo-2.dll \
@@ -263,7 +260,9 @@ COMMON_DLLS := \
 	libraqm-0.dll \
 	libunistring-5.dll \
 	exchndl.dll \
-	mgwhelp.dll
+	mgwhelp.dll \
+	libngtcp2-16.dll \
+	libngtcp2_crypto_ossl.dll
 
 CLIENT_COMMON_DLLS := \
 	$(SOUND_DLLS)
@@ -323,7 +322,8 @@ FCMP_GTK4_DLLS := \
 	libdeflate.dll \
 	libLerc.dll \
 	libsharpyuv-0.dll \
-	libharfbuzz-subset-0.dll
+	libharfbuzz-subset-0.dll \
+	libaccesskit-c-0.15.dll
 
 install-env-gtk4-fcmp: install-env-common
 	cp -R $(addprefix $(DLLPATH_PREFIX), $(FCMP_GTK4_DLLS)) $(INST_DIR)/$(WINARCH)-client-$(GUI)/
@@ -367,7 +367,7 @@ SDL2_DLLS := \
 	libaom.dll \
 	libdav1d-7.dll \
 	librav1e.dll \
-	${SVTAV1ENV} \
+	libSvtAv1Enc-3.dll \
 	libyuv.dll
 
 install-env-sdl2: install-env-gtk4-fcmp
-- 
2.47.2

