diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-27 00:32:20 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-27 00:36:00 +0200 |
commit | ce4a13ed386978614a5ee261c8602b03db1f9ec5 (patch) | |
tree | 823493eaf2c6f80b1c0170f3f93c09c0bd1dc74d | |
parent | 6a1b851130f0d67069a934baa235cdc0fb0305d4 (diff) | |
download | fiv-ce4a13ed386978614a5ee261c8602b03db1f9ec5.tar.gz fiv-ce4a13ed386978614a5ee261c8602b03db1f9ec5.tar.xz fiv-ce4a13ed386978614a5ee261c8602b03db1f9ec5.zip |
msys2-install.sh: don't install the whole MIME DB
-rwxr-xr-x | msys2-install.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/msys2-install.sh b/msys2-install.sh index abb284f..da2d2f1 100755 --- a/msys2-install.sh +++ b/msys2-install.sh @@ -23,12 +23,13 @@ cp -pR "$msys2_root"/lib/gdk-pixbuf-2.0/ lib cp -pR "$msys2_root"/lib/perl5/ lib mkdir -p share/glib-2.0/schemas cp -pR "$msys2_root"/share/glib-2.0/schemas/*.Settings.* share/glib-2.0/schemas -mkdir -p share -cp -pR "$msys2_root"/share/mime/ share mkdir -p share/icons cp -pR "$msys2_root"/share/icons/Adwaita/ share/icons mkdir -p share/icons/hicolor cp -p "$msys2_root"/share/icons/hicolor/index.theme share/icons/hicolor +mkdir -p share/mime +# GIO doesn't use the database on Windows, this subset is for us. +find "$msys2_root"/share/mime/ -maxdepth 1 -type f -exec cp -p {} share/mime \; # Remove unreferenced libraries. find lib -name '*.a' -exec rm -- {} + |