Skip to content

Instantly share code, notes, and snippets.

@jbruechert
Created November 30, 2022 17:22
Show Gist options
  • Save jbruechert/18ed428ebfb258ae1dca9d85900f7c1e to your computer and use it in GitHub Desktop.
Save jbruechert/18ed428ebfb258ae1dca9d85900f7c1e to your computer and use it in GitHub Desktop.
Script to install widevine for use with QtWebEngine on debian.
#!/usr/bin/env bash
set -e -x
CHROMIUM_VERSION="106.0.5249.61"
CHROMIUM_URL="https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROMIUM_VERSION}-1_amd64.deb"
wget "${CHROMIUM_URL}" -O /tmp/chromium.deb
mkdir -p /tmp/chromium-root
dpkg-deb -x /tmp/chromium.deb /tmp/chromium-root
WIDEVINE_PLUGIN="$(find /tmp/chromium-root -name libwidevinecdm.so)"
sudo mkdir -p /usr/x86_64-linux-gnu/qt5/plugins/ppapi
sudo install -Dm644 "${WIDEVINE_PLUGIN}" /usr/x86_64-linux-gnu/qt5/plugins/ppapi
rm -rf /tmp/chromium-root /tmp/chromium.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment