Last active
April 10, 2020 05:37
-
-
Save saidone75/ed26a60ce54ef47792ed49e15589c156 to your computer and use it in GitHub Desktop.
Install latest Widevine DRM plugin on Chromium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ `id -u` -ne 0 ]]; then | |
echo "Error: you must be root to execute this script!" | |
exit 1 | |
fi | |
CHROMIUM_LIB_DIR="/usr/lib/chromium-browser" | |
TMPDIR="$(mktemp -d -p /tmp -t "tmp.XXXXXXXXXX")" | |
cd $TMPDIR | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
dpkg -x google-chrome-stable_current_amd64.deb . | |
if [ -d $CHROMIUM_LIB_DIR ]; then | |
mv opt/google/chrome/WidevineCdm $CHROMIUM_LIB_DIR | |
else | |
echo "Error: " $CHROMIUM_LIB_DIR " does not exist!" | |
exit 1 | |
fi | |
rm -rf $TMPDIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment