qBittorrent Alpha branch

This commit is contained in:
DyonR 2020-08-16 15:28:00 +02:00
parent 46f770fd6d
commit 827f1a7661

View File

@ -29,18 +29,16 @@ RUN apt update \
qtbase5-dev \
qttools5-dev \
libqt5svg5-dev \
&& QBITTORRENT_RELEASE=$(curl -sX GET "https://api.github.com/repos/qBittorrent/qBittorrent/tags" | jq '.[0] .name' | tr -d '"') \
&& LIBTORRENT_ASSETS=$(curl -sX GET "https://api.github.com/repos/arvidn/libtorrent/releases" | jq '.[0] .assets_url' | tr -d '"') \
&& LIBTORRENT_DOWNLOAD_URL=$(curl -sX GET ${LIBTORRENT_ASSETS} | jq '.[0] .browser_download_url' | tr -d '"') \
&& LIBTORRENT_NAME=$(curl -sX GET ${LIBTORRENT_ASSETS} | jq '.[0] .name' | tr -d '"') \
&& curl -o /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz -L https://github.com/qbittorrent/qBittorrent/archive/${QBITTORRENT_RELEASE}.tar.gz \
&& curl -o /opt/${LIBTORRENT_NAME} -L ${LIBTORRENT_DOWNLOAD_URL} \
&& tar -xvzf /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz \
&& tar -xvzf /opt/${LIBTORRENT_NAME} \
&& rm /opt/*.tar.gz \
&& cd /opt/libtorrent-rasterbar* \
&& ./configure --disable-debug --enable-encryption && make clean && make -j$(nproc) && make install \
&& cd /opt/qBittorrent-${QBITTORRENT_RELEASE} \
&& git clone https://github.com/qbittorrent/qBittorrent.git \
&& cd /opt/qBittorrent \
&& ./configure --disable-gui && make -j$(nproc) && make install \
&& cd /opt \
&& rm -rf /opt/* \