Commit f900826c authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm play: use snap_get_pkgurl() in snap packages

parent 12d32b16
......@@ -8,7 +8,6 @@ URL="https://www.plex.tv/"
. $(dirname $0)/common.sh
# https://api.snapcraft.io/api/v1/snaps/download/qc6MFRM433ZhI1XjVzErdHivhSOhlpf0_37.snap
PKGURL="$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/plex-desktop | epm --inscript tool json -b | grep '\["channel-map",0,"download","url"\]' | head -n1 | sed -e 's|.*"\(.*\)"$|\1|' )" #"
PKGURL="$(snap_get_pkgurl $PKGNAME)"
install_pkgurl
......@@ -8,8 +8,5 @@ URL="https://snapcraft.io/singularityapp"
. $(dirname $0)/common.sh
SNAPNAME="singularityapp"
# https://api.snapcraft.io/api/v1/snaps/download/qc6MFRM433ZhI1XjVzErdHivhSOhlpf0_37.snap
PKGURL="$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/$SNAPNAME | epm --inscript tool json -b | grep '\["channel-map",0,"download","url"\]' | head -n1 | sed -e 's|.*"\(.*\)"$|\1|' )"
PKGURL="$(snap_get_pkgurl $PKGNAME)"
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