Commit 7972284f authored by CatSema's avatar CatSema Committed by Vitaly Lipatov

epm play persepolis: fix download

parent bc1f0adf
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
PKGNAME=persepolis PKGNAME=persepolis
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64"
VERSION="$2" VERSION="$2"
DESCRIPTION='is a download manager & a GUI for Aria2' DESCRIPTION='Persepolis is a download manager written in Python.'
URL="https://persepolisdm.github.io/" URL="https://persepolisdm.github.io/"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
...@@ -11,7 +11,9 @@ URL="https://persepolisdm.github.io/" ...@@ -11,7 +11,9 @@ URL="https://persepolisdm.github.io/"
if [ "$VERSION" = "*" ] ; then if [ "$VERSION" = "*" ] ; then
PKGURL=$(get_github_url https://github.com/persepolisdm/persepolis/ "${PKGNAME}_${VERSION}_all.deb") PKGURL=$(get_github_url https://github.com/persepolisdm/persepolis/ "${PKGNAME}_${VERSION}_all.deb")
else else
PKGURL="https://github.com/persepolisdm/persepolis/releases/download/$VERSION/${PKGNAME}_${VERSION}_all.deb" # Отрезаем последнюю цифру из версии для получения правильного тега. Например: 5.1.1.0 -> 5.1.1
TAG_VERSION=$(echo "$VERSION" | sed 's/\.[0-9]*$//')
PKGURL="https://github.com/persepolisdm/persepolis/releases/download/$TAG_VERSION/${PKGNAME}_${VERSION}_all.deb"
fi fi
install_pkgurl 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