From 927444aaaa37f49d6fb083de3c3f23434ce977a5 Mon Sep 17 00:00:00 2001 From: kyrbrbik <103336573+kyrbrbik@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:05:32 +0200 Subject: [PATCH 1/2] fixed opera path for arch --- scripts/fix-opera.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/fix-opera.sh b/scripts/fix-opera.sh index f597f30..c427374 100755 --- a/scripts/fix-opera.sh +++ b/scripts/fix-opera.sh @@ -20,8 +20,12 @@ if ! which wget > /dev/null; then exit 1 fi +if which pacman > /dev/null; then + ARCH_SYSTEM=true +fi + #Config section -readonly FIX_WIDEVINE=true +readonly FIX_WIDEVINE=false readonly TEMP_DIR='/tmp' 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' @@ -87,8 +91,11 @@ fi for opera in ${OPERA_VERSIONS[@]}; do echo "Doing $opera" EXECUTABLE=$(command -v "$opera") - - OPERA_DIR=$(dirname $(readlink -f $EXECUTABLE)) + if [[ $ARCH_SYSTEM -eq true ]]; then + OPERA_DIR="/usr/lib/$opera" + else + OPERA_DIR=$(dirname $(readlink -f $EXECUTABLE)) + fi OPERA_LIB_DIR="$OPERA_DIR/lib_extra" OPERA_WIDEVINE_DIR="$OPERA_LIB_DIR/WidevineCdm" OPERA_WIDEVINE_SO_DIR="$OPERA_WIDEVINE_DIR/_platform_specific/linux_x64" From 0883b15800bed280102bf2eb5ec4d3e8d99e5771 Mon Sep 17 00:00:00 2001 From: kyrbrbik <103336573+kyrbrbik@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:08:17 +0200 Subject: [PATCH 2/2] this should be true --- scripts/fix-opera.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fix-opera.sh b/scripts/fix-opera.sh index c427374..ac73b58 100755 --- a/scripts/fix-opera.sh +++ b/scripts/fix-opera.sh @@ -25,7 +25,7 @@ if which pacman > /dev/null; then fi #Config section -readonly FIX_WIDEVINE=false +readonly FIX_WIDEVINE=true readonly TEMP_DIR='/tmp' 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'