Commit 003d02fb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add balena-etcher

parent abce728e
#!/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
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
mask="balena-etcher-${VERSION}.x86_64.rpm"
;;
deb)
mask="balena-etcher_${VERSION}_amd64.deb"
;;
esac
PKGURL=$(epm tool eget --list --latest https://github.com/balena-io/etcher/releases $mask) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=balena-etcher
PRODUCTDIR=/opt/balenaEtcher
. $(dirname $0)/common-chromium-browser.sh
add_bin_link_command
fix_desktop_file
fix_chrome_sandbox
add_electron_deps
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