Skip to content

Commit

Permalink
Brave Browser: make widevine available
Browse files Browse the repository at this point in the history
see brave/brave-core#21040

available in brave browser in 1.63.x+
  • Loading branch information
theofficialgman committed Feb 22, 2024
1 parent 150cc41 commit 0245ee0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions apps/Brave/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,23 @@ if [ $? != 0 ]; then
error "Failed to install brave-browser."
fi
fi

#detect if Widevine can be enabled
if package_available libwidevinecdm0;then
description="Make Widevine DRM (for Netflix, Spotify) available to Brave?
You will still need to enable Widevine inside of Brave in brave://settings/extensions"
userinput_func "$description" "Yes, make Widevine DRM available" "No, do not make Widevine DRM available."
if [ "$output" == "Yes, make Widevine DRM available" ]; then
install_packages libwidevinecdm0 || exit 1
fi
fi

# make widevine available if it is installed
if [ -d /opt/chromium.org/chromium/WidevineCdm ]; then
sudo rm -rf /opt/brave.com/brave/WidevineCdm
sudo ln -s /opt/chromium.org/chromium/WidevineCdm /opt/brave.com/brave/WidevineCdm || error "Could not create WidevineCdm symlink"
elif [ -d /opt/WidevineCdm ]; then
sudo rm -rf /opt/brave.com/brave/WidevineCdm
sudo ln -s /opt/WidevineCdm /opt/brave.com/brave/WidevineCdm || error "Could not create WidevineCdm symlink"
fi

0 comments on commit 0245ee0

Please sign in to comment.