Compare commits

..

4 Commits

Author SHA1 Message Date
Maksim Ivanov
423c8ea9ec Removed hardcoded path for Arch systems 2023-09-12 11:20:41 +03:00
Maksim Ivanov
e0e13e6cb1 Merge pull request #18 from kyrbrbik/main
Fix for arch based systems
2023-09-12 11:17:31 +03:00
kyrbrbik
0883b15800 this should be true 2023-09-04 22:08:17 +02:00
kyrbrbik
927444aaaa fixed opera path for arch 2023-09-04 22:05:32 +02:00

View File

@@ -20,6 +20,10 @@ 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 TEMP_DIR='/tmp'
@@ -87,8 +91,11 @@ fi
for opera in ${OPERA_VERSIONS[@]}; do
echo "Doing $opera"
EXECUTABLE=$(command -v "$opera")
if [[ $ARCH_SYSTEM -eq true ]]; then
OPERA_DIR=$(dirname $(cat $EXECUTABLE | grep exec | cut -d ' ' -f 2))
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"