-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
distributeDLLs.sh
36 lines (32 loc) · 1.07 KB
/
distributeDLLs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
mkdir -p dlls
mkdir -p dlls/lib
mkdir -p dlls/share
mkdir -p dlls/share/icons
mkdir -p dlls/share/glib-2.0
mkdir -p dlls/share/glib-2.0/schemas
echo
PS3='Choose the correct version: '
options=("mingw64" "mingw32")
select opt in "${options[@]}"
do
cp /$opt/bin/gdbus.exe ./dlls/
cp -R /$opt/lib/gdk-pixbuf-2.0 ./dlls/lib
rm ./dlls/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.a
GDK_PIXBUF_MODULEDIR=./dlls/lib/gdk-pixbuf-2.0/2.10.0/loaders
gdk-pixbuf-query-loaders --update-cache
cp /$opt/bin/fc-* ./dlls/
cp -R /$opt/share/icons/Adwaita ./dlls/share/icons
cp -R /$opt/share/icons/hicolor ./dlls/share/icons
cp /$opt/share/glib-2.0/schemas/* ./dlls/share/glib-2.0/schemas/
glib-compile-schemas ./dlls/share/glib-2.0/schemas/
cp /$opt/bin/librsvg-2-2.dll ./dlls
cp /$opt/bin/libxml2-2.dll ./dlls
cp /$opt/bin/libiconv-2.dll ./dlls
cp /$opt/bin/libcharset-1.dll ./dlls
cp /$opt/bin/zlib1.dll ./dlls
cp /$opt/bin/liblzma-5.dll ./dlls
break;
done
ldd ./src/core/lwp.exe | grep '\/mingw.*\.dll' -o | xargs -I{} cp "{}" ./dlls/
echo "Done"