Commit 396a94e3 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play youtube-music: add arm support; fix x86_64 AppImage download (eterbug #17865)

parent deacb778
#!/bin/sh
PKGNAME=YouTube-Music
SUPPORTEDARCHES="x86_64"
SUPPORTEDARCHES="x86_64 armv7l aarch64"
VERSION="$2"
DESCRIPTION="YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)"
URL="https://github.com/th-ch/youtube-music"
. $(dirname $0)/common.sh
PKGURL="$(eget --list --latest https://github.com/th-ch/youtube-music/releases/ "YouTube-Music-$VERSION.AppImage")"
# hack for YouTube-Music-3.6.2.AppImage. eget trying to download armv7l ver instead of x86_64
get_x86_64_ver(){
if [ "$VERSION" = "*" ]; then
VERSION=$(eget --list --latest "https://github.com/th-ch/youtube-music/releases" "YouTube-Music-*.AppImage" \
| grep -oE 'YouTube-Music-[0-9]+\.[0-9]+(\.[0-9]+)?' | grep -oE '[0-9]+\.[0-9]+(\.[0-9]+)?')
mask="YouTube-Music-$VERSION.AppImage"
else
mask="YouTube-Music-$VERSION.AppImage"
fi
}
case $(epm print info -a) in
x86_64)
get_x86_64_ver ;;
armv7l)
mask="YouTube-Music-$VERSION-armv7l.AppImage" ;;
aarch64)
mask="YouTube-Music-$VERSION-arm64.AppImage" ;;
*)
fatal "Unsupported arch $arch for $(epm print info -d)" ;;
esac
PKGURL="$(eget --list --latest https://github.com/th-ch/youtube-music/releases/ $mask)"
install_pkgurl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment