Unverified Commit 14fc55c1 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by GitHub

epm play yandex-music: replace repacked client to official client (eterbug #18600) (#489)

parent d5698466
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION.tar
# erc unpack /var/tmp/tmp.F8zrFHvurl/Yandex_Music_amd64_5.71.2.deb
# ERROR: Can't recognize type of /var/tmp/tmp.F8zrFHvurl/Yandex_Music_amd64_5.71.2.deb.
a='' ar -x $TAR
a='' tar xf "data.tar.xz"
# drop dirname with spaces
mv -v "opt/Яндекс Музыка" opt/yandex-music || fatal
# disable autoupdate
rm -v opt/yandex-music/resources/app-update.yml
# fix desktop file
subst 's|^Exec=.*|Exec=yandexmusic %U|' usr/share/applications/yandexmusic.desktop
erc pack $PKGNAME opt usr
return_tar $PKGNAME
#!/bin/sh #!/bin/sh
PKGNAME=yandex-music PKGNAME=yandexmusic
SUPPORTEDARCHES="x86_64 aarch64 armhf" SUPPORTEDARCHES="x86_64"
VERSION="$2" VERSION="$2"
DESCRIPTION="Native Yandex Music client for Linux. Made with OSX/Windows beta client repacking" DESCRIPTION="Native Yandex Music client for Linux"
URL="https://github.com/cucumber-sp/yandex-music-linux/releases" URL="https://music.yandex.ru/download"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
arch="$(epm print info --debian-arch)"
case "$arch" in
armv7l)
arch=armhf
;;
esac
PKGURL=$(eget --list --latest https://github.com/cucumber-sp/yandex-music-linux/releases "yandex-music_${VERSION}_${arch}.deb") DOWNLOAD_JSON="https://music-desktop-application.s3.yandex.net/stable/download.json"
JSON="$(eget -O- "$DOWNLOAD_JSON")"
install_pkgurl if [ "$VERSION" = "*" ] ; then
VERSION=$(echo $JSON | grep -oP '(?<=Yandex_Music_amd64_)[0-9.]+(?=\.deb)')
fi
PKGURL="https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${VERSION}.deb"
install_pack_pkgurl "$VERSION"
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