balena-etcher.sh 493 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh

PKGNAME=balena-etcher
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Flash OS images to SD cards & USB drives, safely and easily"
URL="https://etcher.io/"

. $(dirname $0)/common.sh

11
mask="balena-etcher_${VERSION}_amd64.deb"
12

13 14 15 16 17
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
18

19
install_pkgurl