-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·28 lines (23 loc) · 948 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·28 lines (23 loc) · 948 Bytes
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
#!/bin/bash
# Install cpanm
curl -L http://cpanmin.us | perl - --self-upgrade
# Perl modules
# https://github.com/exiftool/exiftool/blob/master/windows_exiftool
cpanm Archive::Zip PAR PAR::Packer IO::String
zip -y -q -r cpanm-log.zip ~/.cpanm/
# Get repo
wget -O exiftool.zip https://github.com/exiftool/exiftool/archive/refs/tags/13.59.zip
unzip -q exiftool.zip
rm exiftool.zip
cd exiftool-*
rm -rf windows_exiftool html t
# Build fully-packed exiftool (interpreter + deps + exiftool code)
ARGS=`awk '!/^#/ && !/Win32|Brotli/' pp_build_exe.args | tr '\n' ' '`
pp $ARGS
mv exiftool.exe ../
# Build generic packed-perl binary (interpreter + deps, no app script packed).
# Packs the eperl stub, which runs an external script at run time:
RUNTIME_DEPS=`awk '/^-M / && !/Win32|Brotli/' pp_build_exe.args | tr '\n' ' '`
pp --reusable -o eperl.exe -T eperl $RUNTIME_DEPS -M JSON::PP -M FindBin ../eperl.pl
mv eperl.exe ../
echo 'Built successfully'