Commit 3057e5e2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add 1c-connect

parent 6ab4ce50
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
echo "$TAR" | grep -q "1C-Connect-Linux-x64.tar.gz" || fatal "Use only for 1C-Connect-Linux-x64.tar.gz."
mkdir opt
erc unpack $TAR || fatal
mv 1C-Connect-Linux-x64.tar opt/$PRODUCT
echo "true" > ./opt/$PRODUCT/app/bin/updater
VERSION="$(grep version_name opt/$PRODUCT/dist.json | sed -e 's|",.*||' -e 's|.*"||')"
[ -n "$VERSION" ] || fatal "Can't get version from dist.json file."
PKGNAME=$PRODUCT-$VERSION
erc a $PKGNAME.tar opt
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=1c-connect
SUPPORTEDARCHES="x86_64"
#VERSION="$2"
# is not supported
DESCRIPTION="1C Connect — Service & Help desk со встроенным удалённым доступом и мессенджером"
URL="https://1c-connect.com"
. $(dirname $0)/common.sh
PKGURL="https://updates.1c-connect.com/desktop/distribs/1C-Connect-Linux-x64.tar.gz"
epm pack --install $PKGNAME "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
# installing from tar, so we need fill some fields here
subst "s|^Group:.*|Group: Office|" $SPEC
subst "s|^License: unknown$|License: Proprietary|" $SPEC
subst "s|^URL:.*|URL: https://1c-connect.com/|" $SPEC
subst "s|^Summary:.*|Summary: 1C Connect|" $SPEC
add_bin_cdexec_command $PRODUCT $PRODUCTDIR/app/bin/connect
install_file $PRODUCTDIR/app/bin/ico-app.png /usr/share/pixmaps/$PRODUCT.png
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Name=1C Connect
Comment=1C Connect
Exec=$PRODUCT -- %u
Icon=$PRODUCT
Type=Application
Categories=Network;
X-GNOME-UsesNotifications=true
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
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