fix: Force version 7.0.1 for ARM64

This commit is contained in:
Kroese 2025-03-24 17:45:57 +01:00 committed by GitHub
parent 0c7acd6e71
commit a46a10bbf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@ if [ -n "$URL" ]; then
BASE=$(echo "$BASE" | sed -e 's/[^A-Za-z0-9._-]/_/g')
fi
if [[ "${URL,,}" != "http"* ]]; then
BASE="DSM_VirtualDSM_42218"
if [ -s "$STORAGE/$BASE.pat" ]; then
URL="file://$STORAGE/$BASE.pat"
else
@ -47,7 +48,14 @@ if [ -z "$DL" ]; then
[[ "${COUNTRY^^}" == "CN" ]] && DL="$DL_CHINA" || DL="$DL_GLOBAL"
fi
[ -z "$URL" ] && URL="$DL/release/7.2.2/72806/DSM_VirtualDSM_72806.pat"
if [ -z "$URL" ]; then
URL="$DL/release/7.2.2/72806/DSM_VirtualDSM_72806.pat"
fi
if [ "$ARCH" != "amd64" ]; then
# Temporary workaround to prevent shared library error
URL="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
fi
BASE=$(basename "${URL%%\?*}" .pat)
: "${BASE//+/ }"; printf -v BASE '%b' "${_//%/\\x}"