forked from harvard-lil/scoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postinstall.sh
executable file
·25 lines (22 loc) · 1.02 KB
/
postinstall.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
#-------------------------------------------------------------------------------
# Post-install script
#-------------------------------------------------------------------------------
mkdir ./executables/;
# Pull yt-dlp (v2024.10.22)
curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2024.10.22/yt-dlp > ./executables/yt-dlp;
chmod a+x ./executables/yt-dlp;
# Pull crip (v2.1.0)
if [ "$(uname)" == "Darwin" ]; then
curl -L https://github.com/Hakky54/certificate-ripper/releases/download/2.1.0/crip-macos-amd64.tar.gz > ./executables/crip.tar.gz;
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
if [ "$(uname -m)" == "aarch64" ]; then
curl -L https://github.com/Hakky54/certificate-ripper/releases/download/2.1.0/crip-linux-aarch64.tar.gz > ./executables/crip.tar.gz;
else
curl -L https://github.com/Hakky54/certificate-ripper/releases/download/2.1.0/crip-linux-amd64.tar.gz > ./executables/crip.tar.gz;
fi
fi
cd ./executables;
tar -xzvf crip.tar.gz;
chmod a+x crip;
rm crip.tar.gz;
cd ..;