Skip to content

Commit

Permalink
Merge pull request #210 from DerryAlex/master
Browse files Browse the repository at this point in the history
Fetch GLib/Gio win32 specific GIR file
  • Loading branch information
bilelmoussaoui authored Aug 11, 2024
2 parents 4d11891 + ae6920e commit fa73af2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dl-win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa73af2

Please sign in to comment.