diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 14:49:23 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 16:11:07 +0200 |
commit | 7cbd24dd2f99c160b0e4c9765783b2294caca6dc (patch) | |
tree | 85c37ca3a67af4c837a249908b13c3c7e607fbb1 /msys2-cross-install.sh | |
parent | 1a163bdb8b4878f456fb04b33978a92f3fcd8e91 (diff) | |
download | fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.tar.gz fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.tar.xz fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.zip |
Bundle a fuller installation of Perl/ExifTool
wperl is necessary to get rid of the console window,
which is merely one of several issues with the PAR Packer-based
ExifTool bundle used in the last commit.
The Perl installation could be heavily trimmed down,
but it seems to require a very manual process.
Diffstat (limited to 'msys2-cross-install.sh')
-rwxr-xr-x | msys2-cross-install.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/msys2-cross-install.sh b/msys2-cross-install.sh index b98a227..7cbc2cc 100755 --- a/msys2-cross-install.sh +++ b/msys2-cross-install.sh @@ -3,15 +3,17 @@ export LC_ALL=C cd "$MESON_INSTALL_DESTDIR_PREFIX" msys2_root=$1 -# Copy libraries we depend on, and a few files required by GLib/GTK+. -cp -p "$msys2_root"/bin/exiftool.exe . +# Copy binaries we directly or indirectly depend on. cp -p "$msys2_root"/bin/*.dll . +cp -p "$msys2_root"/bin/wperl.exe . +cp -p "$msys2_root"/bin/exiftool . # The console helper is only useful for debug builds. cp -p "$msys2_root"/bin/gspawn-*-helper*.exe . cp -pR "$msys2_root"/etc/ . mkdir -p lib 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 @@ -36,8 +38,7 @@ awk 'function whitelist(binary) { orphans[$0]++ while (("find . -type f -path \"./*.[Ee][Xx][Ee]\"" | getline) > 0) whitelist($0) - while (("find ./lib/gdk-pixbuf-2.0 -type f " \ - "-path \"./*.[Dd][Ll][Ll]\"" | getline) > 0) + while (("find ./lib -type f -path \"./*.[Dd][Ll][Ll]\"" | getline) > 0) whitelist($0) for (library in orphans) print library |