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

epm play: add rocketchat support

parent bf26a600
#!/bin/sh
PKGNAME=rocketchat
SUPPORTEDARCHES="x86_64"
DESCRIPTION='Rocket.Chat Linux Desktop Client from the official site'
. $(dirname $0)/common.sh
arch=amd64
pkgtype=deb
PKG=$(epm tool eget --list --latest https://github.com/RocketChat/Rocket.Chat.Electron/releases/ "$PKGNAME*$arch.$pkgtype") || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
epm install "$PKG"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=rocketchat
PRODUCTCUR=rocketchat-desktop
PRODUCTDIR=/opt/Rocket.Chat
. $(dirname $0)/common-chromium-browser.sh
add_bin_link_command $PRODUCTCUR $PRODUCTDIR/$PRODUCTCUR
add_bin_link_command $PRODUCT $PRODUCTCUR
install_deps
fix_chrome_sandbox
subst "s|$PRODUCTDIR/||" $BUILDROOT/usr/share/applications/rocketchat-desktop.desktop
#epm assure patchelf || exit
#for i in $BUILDROOT$PRODUCTDIR/$PRODUCT ; do
# a= patchelf --set-rpath "$PRODUCTDIR" $i
#done
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