jetbrains-toolbox.sh 505 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh

TAR="$1"
RETURNTARNAME="$2"

. $(dirname $0)/common.sh

# use version from tarball
PKGNAME="$(basename $TAR .tar.gz)"

11
# they packed AppImage to tarball, so unpack it
12
erc $TAR || fatal
13
cd $PKGNAME* || fatal
14
cp $PRODUCT $PKGNAME.AppImage || fatal
15

Vitaly Lipatov's avatar
Vitaly Lipatov committed
16 17 18 19 20 21 22 23 24
cat <<EOF >$PKGNAME.AppImage.eepm.yaml
name: $PRODUCT
group: Development/C
license: Proprietary
url: https://www.jetbrains.com/ru-ru/toolbox-app/
summary: JetBrains Toolbox App
description: JetBrains Toolbox App.
EOF

25
return_tar $PKGNAME.AppImage