add widevine support to chromium

This commit is contained in:
m1k1o 2021-02-09 21:20:53 +01:00
parent 3788d81061
commit f7ae2f3b3c

View File

@ -5,7 +5,7 @@ ARG SRC_URL="https://github.com/macchrome/linchrome/releases/download/v87.0.4280
# #
# install custom chromium build from woolyss with support for hevc/x265 # install custom chromium build from woolyss with support for hevc/x265
RUN set -eux; apt-get update; \ RUN set -eux; apt-get update; \
apt-get install -y --no-install-recommends libatk1.0-0 libatk-bridge2.0-0 libatomic1 \ apt-get install -y --no-install-recommends wget unzip libatk1.0-0 libatk-bridge2.0-0 libatomic1 \
libcups2 libgtk-3-0 libnss3 libpci3 libxcomposite1 libxss1 openbox xz-utils; \ libcups2 libgtk-3-0 libnss3 libpci3 libxcomposite1 libxss1 openbox xz-utils; \
wget -O - /tmp/chromium.tar.xz "${SRC_URL}" | tar -xJf- -C /tmp; \ wget -O - /tmp/chromium.tar.xz "${SRC_URL}" | tar -xJf- -C /tmp; \
mv /tmp/ungoogled-chromium_* /usr/lib/chromium; \ mv /tmp/ungoogled-chromium_* /usr/lib/chromium; \
@ -15,6 +15,13 @@ RUN set -eux; apt-get update; \
chown root:root /usr/lib/chromium/chrome-sandbox; \ chown root:root /usr/lib/chromium/chrome-sandbox; \
chmod 4755 /usr/lib/chromium/chrome-sandbox; \ chmod 4755 /usr/lib/chromium/chrome-sandbox; \
# #
# install widevine module
WIDEVINE_VERSION=$(wget --quiet -O - https://dl.google.com/widevine-cdm/versions.txt | tail -n 1); \
wget -O /tmp/widevine.zip "https://dl.google.com/widevine-cdm/$WIDEVINE_VERSION-linux-x64.zip"; \
unzip -p /tmp/widevine.zip libwidevinecdm.so > /usr/lib/chromium/libwidevinecdm.so; \
chmod 644 /usr/lib/chromium/libwidevinecdm.so; \
rm /tmp/widevine.zip; \
#
# clean up # clean up
apt-get --purge autoremove -y xz-utils; \ apt-get --purge autoremove -y xz-utils; \
apt-get clean -y; \ apt-get clean -y; \