Commit 8e698e39 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play balena-etcher: add direct downloading, use deb only

parent da8389d8
......@@ -8,16 +8,12 @@ URL="https://etcher.io/"
. $(dirname $0)/common.sh
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
mask="balena-etcher-${VERSION}-[1-9].x86_64.rpm"
;;
*)
mask="balena-etcher_${VERSION}_amd64.deb"
;;
esac
mask="balena-etcher_${VERSION}_amd64.deb"
PKGURL=$(eget --list --latest https://github.com/balena-io/etcher/releases "$mask")
if [ "$VERSION" = "*" ] ; then
PKGURL=$(eget --list --latest https://github.com/balena-io/etcher/releases "$mask")
else
PKGURL="https://github.com/balena-io/etcher/releases/download/v$VERSION/${PKGNAME}_${VERSION}_amd64.deb"
fi
install_pkgurl
......@@ -11,7 +11,6 @@ PRODUCTDIR=/opt/balena-etcher
move_to_opt
rm usr/bin/$PRODUCT
add_bin_link_command
fix_desktop_file
......
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