vinteo.desktop.sh 820 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=vinteo.desktop
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 --list --latest "https://download.vinteo.com/VinteoClient/linux/3.*" | xargs basename)"
15
[ -n "$VERSION" ] || fatal "Can't get version"
16 17 18 19 20 21 22 23 24 25 26 27

# 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*)
      PKGURL="https://download.vinteo.com/VinteoClient/linux/$VERSION/astralinux/Vinteo.Desktop-$VERSION-$arch.$pkgtype"
      ;;
  *)
      PKGURL="https://download.vinteo.com/VinteoClient/linux/$VERSION/Vinteo.Desktop-$VERSION-$arch.$pkgtype"
      ;;
esac
28

29
install_pkgurl