Commit a52e9d57 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play jetbrains-toolbox: rewrite with epm pack

parent e01343a7
#!/bin/sh
TAR="$1"
#VERSION="$2"
RETURNTARNAME="$2"
PRODUCT=jetbrains-toolbox
. $(dirname $0)/common.sh
CURDIR="$(pwd)"
PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
# TODO: embed erc to epm
epm assure erc || epm ei erc || fatal
# use version from tarball
PKGNAME="$(basename $TAR .tar.gz)"
erc $TAR || fatal
cd $PKGNAME || fatal
cp $PRODUCT $CURDIR/$PKGNAME.AppImage || fatal
return_tar $PKGNAME.AppImage
......@@ -13,7 +13,13 @@ URL=$(epm tool eget -O- "https://data.services.jetbrains.com/products?code=TBA&r
#https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.25.12627.tar.gz
# eval for drop quotes
eval epm install $URL
eval epm pack --install $PKGNAME $URL
echo
echo "Run jetbrains-toolbox under user to install."
#if [ ! -r /dev/fuse ] ; then
# echo
# echo "Add the user $USER to fuse group"
# echo "For example. run # usermod -aG fuse $USER"
#fi
......@@ -15,11 +15,11 @@ subst "s|^Group:.*|Group: Development/C|" $SPEC
subst "s|^URL:.*|URL: https://www.jetbrains.com/ru-ru/toolbox-app/|" $SPEC
subst "s|^Summary:.*|Summary: JetBrains Toolbox App|" $SPEC
move_to_opt "/$PRODUCT-*"
add_bin_link_command $PRODUCT
#move_to_opt "/$PRODUCT-*"
#add_bin_link_command $PRODUCT
subst '1iAutoProv:no' $SPEC
#subst '1iAutoProv:no' $SPEC
# ldd: ERROR: /tmp/jetbrains-toolbox-1.25.12627/jetbrains-toolbox: failed to find the program interpreter
subst '1iAutoReq:no' $SPEC
#subst 's|^AutoReq:.*|AutoReq:no|' $SPEC
exit
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