mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2026-08-26 17:35:02 +03:00
Compare commits
4
Commits
a0e9672c45
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0150fa9bc9 | ||
|
|
b22229d589 | ||
|
|
07c8df08c6 | ||
|
|
42fe8e0176 |
+1
-1
@@ -32,7 +32,7 @@ install_deps() {
|
|||||||
apt-get install -y "${DEPS[@]}"
|
apt-get install -y "${DEPS[@]}"
|
||||||
;;
|
;;
|
||||||
dnf)
|
dnf)
|
||||||
dnf install -y "${DEPS[@]} python3-dnf-plugin-post-transaction-actions"
|
dnf install -y "${DEPS[@]}" python3-dnf-plugin-post-transaction-actions
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
pacman -Sy --needed --noconfirm "${DEPS[@]}"
|
pacman -Sy --needed --noconfirm "${DEPS[@]}"
|
||||||
|
|||||||
Regular → Executable
+6
-2
@@ -31,7 +31,12 @@ fi
|
|||||||
|
|
||||||
#Config section
|
#Config section
|
||||||
readonly FIX_WIDEVINE=true
|
readonly FIX_WIDEVINE=true
|
||||||
readonly FIX_DIR='/tmp/opera-fix'
|
FIX_DIR=$(mktemp -d -t opera-fix.XXXXXXXX)
|
||||||
|
if [[ ! -d "$FIX_DIR" ]]; then
|
||||||
|
printf 'Failed to create a secure temporary directory\n'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
readonly FIX_DIR
|
||||||
readonly FFMPEG_SRC_MAIN='https://api.github.com/repos/Ld-Hagen/nwjs-ffmpeg-prebuilt/releases'
|
readonly FFMPEG_SRC_MAIN='https://api.github.com/repos/Ld-Hagen/nwjs-ffmpeg-prebuilt/releases'
|
||||||
readonly FFMPEG_SRC_ALT='https://api.github.com/repos/Ld-Hagen/fix-opera-linux-ffmpeg-widevine/releases'
|
readonly FFMPEG_SRC_ALT='https://api.github.com/repos/Ld-Hagen/fix-opera-linux-ffmpeg-widevine/releases'
|
||||||
readonly WIDEVINE_SRC='https://raw.githubusercontent.com/mozilla-firefox/firefox/refs/heads/main/toolkit/content/gmp-sources/widevinecdm.json'
|
readonly WIDEVINE_SRC='https://raw.githubusercontent.com/mozilla-firefox/firefox/refs/heads/main/toolkit/content/gmp-sources/widevinecdm.json'
|
||||||
@@ -121,7 +126,6 @@ if $FIX_WIDEVINE; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#Downloading Widevine
|
#Downloading Widevine
|
||||||
mkdir -p "$FIX_DIR"
|
|
||||||
if $FIX_WIDEVINE; then
|
if $FIX_WIDEVINE; then
|
||||||
printf 'Downloading Widevine CDM...\n'
|
printf 'Downloading Widevine CDM...\n'
|
||||||
echo -e "From URL: $WIDEVINE_URL\n"
|
echo -e "From URL: $WIDEVINE_URL\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user