-
Notifications
You must be signed in to change notification settings - Fork 77
/
install.sh
27 lines (21 loc) · 838 Bytes
/
install.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
26
27
#!/usr/bin/with-contenv bash
# Check CPU architecture
ARCH=$(uname -m)
echo -e "${INFO} Check CPU architecture ..."
if [[ ${ARCH} == "x86_64" ]]; then
ARCH="qbittorrent-enhanced-nox_x86_64-linux-musl_static.zip"
elif [[ ${ARCH} == "armv7l" ]]; then
ARCH="qbittorrent-enhanced-nox_arm-linux-musleabi_static.zip"
elif [[ ${ARCH} == "aarch64" ]]; then
ARCH="qbittorrent-enhanced-nox_aarch64-linux-musl_static.zip"
else
echo -e "${ERROR} This architecture is not supported."
exit 1
fi
# Download files
echo "Downloading binary file: ${ARCH}"
TAG=$(cat /qbittorrent/ReleaseTag)
echo "qbittorrent version: ${TAG}"
curl -L -o ${PWD}/qbittorrentee.zip https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/download/release-$TAG/$ARCH
echo "Download binary file: ${ARCH} completed"
unzip qbittorrentee.zip