vinteo.desktop.sh 871 Bytes
Newer Older
1 2
#!/bin/sh

3
PKGNAME=vinteo-desktop
4
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION="Client for Vinteo videoconferencing server"
7
URL="https://vinteo.com"
8 9 10 11 12 13

. $(dirname $0)/common.sh

arch=amd64
pkgtype=deb

14
[ "$VERSION" = "*" ] && VERSION="$(eget -q -O- "https://vinteo.ru/download/vinteo-desktop/" | grep -o -m 1 "Версия продукта [0-9].[0-9].[0-9]" | awk '{print $3}' )"
15
[ -n "$VERSION" ] || fatal "Can't get version"
16 17 18 19 20 21

# use rpm, but not for ALT
[ "$(epm print info -p)" = "rpm" ] && [ "$(epm print info -s)" != "alt" ] && pkgtype=rpm

case "$(epm print info -d)" in
  AstraLinux*)
22
      PKGURL="https://download.vinteo.com/VinteoClient/linux/$VERSION/astralinux/vinteo-desktop-$VERSION-$arch.$pkgtype"
23 24
      ;;
  *)
25
      PKGURL="https://download.vinteo.com/VinteoClient/linux/$VERSION/vinteo-desktop-$VERSION-$arch.$pkgtype"
26 27
      ;;
esac
28

29
install_pkgurl