-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_tools.sh
More file actions
26 lines (23 loc) · 1.18 KB
/
Copy pathinstall_tools.sh
File metadata and controls
26 lines (23 loc) · 1.18 KB
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
#!/bin/bash
if ! command -v mediainfo --version &> /dev/null
then
echo 'Additions tools is not installed.' >&2
wget https://mediaarea.net/repo/deb/repo-mediaarea_1.0-25_all.deb \
&& dpkg -i repo-mediaarea_1.0-25_all.deb \
&& apt-get update \
&& apt-get -y install mediainfo
rm repo-mediaarea_1.0-25_all.deb
fi
if ! command -v mkvmerge --version &> /dev/null
then
wget -O /usr/share/keyrings/gpg-pub-moritzbunkus.gpg https://mkvtoolnix.download/gpg-pub-moritzbunkus.gpg \
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/ubuntu/ noble main" >> /etc/apt/sources.list.d/mkvtoolnix.list \
&& echo "deb-src [arch=amd64 signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/ubuntu/ noble main" >> /etc/apt/sources.list.d/mkvtoolnix.list \
&& apt-get update \
&& apt-get -y install mkvtoolnix
fi
if [ ! -f "hdr10plus_tool" ]; then
curl -LO "https://github.com/quietvoid/hdr10plus_tool/releases/download/1.7.0/hdr10plus_tool-1.7.0-x86_64-unknown-linux-musl.tar.gz"
tar -xzvf "./hdr10plus_tool-1.7.0-x86_64-unknown-linux-musl.tar.gz"
rm ./hdr10plus_tool-1.7.0-x86_64-unknown-linux-musl.tar.gz
fi