Commit d994e994 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add tonkeeper

parent 1529be40
#!/bin/sh
PKGNAME=Tonkeeper
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="Tonkeeper desktop from the official site"
URL="https://tonkeeper.com/desktop"
. $(dirname $0)/common.sh
arch="$(epm print info --distro-arch)"
pkgtype="$(epm print info -p)"
case "$pkgtype" in
rpm)
[ "$VERSION" = "*" ] && VERSION="[0-9]*" || VERSION="$VERSION-1"
;;
deb)
PKGNAME=tonkeeper
;;
*)
PKGNAME=tonkeeper
pkgtype="deb"
;;
esac
# https://github.com/tonkeeper/tonkeeper-web/releases/download/v3.7.1/tonkeeper_3.7.1_amd64.deb
# https://github.com/tonkeeper/tonkeeper-web/releases/download/v3.7.1/Tonkeeper-3.7.1-1.x86_64.rpm
PKGURL=$(epm tool eget --list --latest https://github.com/tonkeeper/tonkeeper-web/releases $(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL" || exit
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=Tonkeeper
PRODUCTCUR=tonkeeper
PRODUCTDIR=/opt/$PRODUCT
. $(dirname $0)/common-chromium-browser.sh
move_to_opt
rm ./usr/bin/$PRODUCT
add_bin_link_command $PRODUCT
add_bin_link_command $PRODUCTCUR $PRODUCT
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