From ae6920e20b72939846feeb4015443d1633fdc309 Mon Sep 17 00:00:00 2001 From: DerryAlex Date: Sun, 11 Aug 2024 10:06:01 +0800 Subject: [PATCH] Fetch GLib/Gio win32 specific GIR file --- dl-win32.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dl-win32.sh b/dl-win32.sh index 794df992..28dc7e2c 100755 --- a/dl-win32.sh +++ b/dl-win32.sh @@ -4,3 +4,11 @@ GTK_VERSION=$(wget -qO- "https://packages.msys2.org/api/search?query=gtk4" | jq wget -qO- "https://mirror.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-gtk4-$GTK_VERSION-any.pkg.tar.zst" | \ zstdcat - | tar xO "ucrt64/share/gir-1.0/GdkWin32-4.0.gir" > GdkWin32-4.0.gir + +# -x ucrt64/share/gir-1.0/GLibWin32-2.0.gir -x ucrt64/share/gir-1.0/GioWin32-2.0.gir +GLIB_VERSION=$(wget -qO- "https://packages.msys2.org/api/search?query=glib2" | jq -r ".results.exact.version") + +wget -qO- "https://mirror.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-glib2-$GLIB_VERSION-any.pkg.tar.zst" | \ + zstdcat - | tar -x "ucrt64/share/gir-1.0/GLibWin32-2.0.gir" -x "ucrt64/share/gir-1.0/GioWin32-2.0.gir" +mv ucrt64/share/gir-1.0/*.gir . +rm -r ucrt64