Files
image-builder_old/projects/widefrog/scripts/install.sh
2025-09-22 13:19:41 +02:00

81 lines
2.9 KiB
Bash

#!/bin/bash
apt-get update && apt-get install -y \
wget \
unzip \
nano \
git \
ffmpeg
wget -O widefrog.zip https://files.videohelp.com/u/308780/widefrog_v2_9_0_python_source_code.zip && \
unzip widefrog.zip && \
rm widefrog.zip && \
grep -v '^#' requirements.txt | xargs -n 1 pip install && \
pip install urllib3 --upgrade && \
playwright install && \
chmod +x terminal/*
arch=$(uname -m) && \
if [[ "$arch" == "x86_64" ]]; then
wget https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.1-beta/N_m3u8DL-RE_Beta_linux-x64_20240828.tar.gz && \
tar -xzf N_m3u8DL-RE_Beta_linux-x64_20240828.tar.gz && \
cp ./N_m3u8DL-RE_Beta_linux-x64/N_m3u8DL-RE . && \
chmod +x N_m3u8DL-RE && \
rm -r N_m3u8DL-RE_Beta_linux-x64 && \
rm N_m3u8DL-RE_Beta_linux-x64_20240828.tar.gz
wget https://github.com/shaka-project/shaka-packager/releases/download/v3.3.0/packager-linux-x64 && \
mv packager-linux-x64 shaka-packager && \
chmod +x shaka-packager
wget https://www.bok.net/Bento4/binaries/Bento4-SDK-1-6-0-641.x86_64-unknown-linux.zip && \
unzip Bento4-SDK-1-6-0-641.x86_64-unknown-linux.zip && \
mv Bento4-SDK-1-6-0-641.x86_64-unknown-linux/bin/mp4decrypt mp4decrypt && \
chmod +x mp4decrypt && \
rm -r Bento4-SDK-1-6-0-641.x86_64-unknown-linux && \
rm Bento4-SDK-1-6-0-641.x86_64-unknown-linux.zip
apt-get install -y mkvtoolnix
elif [[ "$arch" == "aarch64" ]]; then
wget https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.1-beta/N_m3u8DL-RE_Beta_linux-arm64_20240828.tar.gz && \
tar -xzf N_m3u8DL-RE_Beta_linux-arm64_20240828.tar.gz && \
cp ./N_m3u8DL-RE_Beta_linux-arm64/N_m3u8DL-RE . && \
chmod +x N_m3u8DL-RE && \
rm -r N_m3u8DL-RE_Beta_linux-arm64 && \
rm N_m3u8DL-RE_Beta_linux-arm64_20240828.tar.gz
wget https://github.com/shaka-project/shaka-packager/releases/download/v3.3.0/packager-linux-arm64 && \
mv packager-linux-arm64 shaka-packager && \
chmod +x shaka-packager
cd /tmp/ && \
git clone https://github.com/axiomatic-systems/Bento4.git bento4 && \
cd bento4 && \
apt-get install -y \
ca-certificates \
make \
cmake \
gcc \
g++ && \
rm -rf /tmp/bento4/cmakebuild && \
mkdir -p /tmp/bento4/cmakebuild/arm64-unknown-linux && \
cd /tmp/bento4/cmakebuild/arm64-unknown-linux && \
cmake -DCMAKE_BUILD_TYPE=Release ../.. && \
make -j$(nproc) && \
cp mp4decrypt /build/ && \
cd /build && \
rm -r /tmp/bento4 && \
apt-get install -y mkvtoolnix
fi
echo "export PATH=\$PATH:/build" >> /root/.bashrc
#python widefrog.py
mkdir /build/media
mkdir /build/app_files
apt-get purge -y \
make \
cmake \
gcc \
g++ \
wget \
unzip \
nano \
git