Commit deacb778 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play vinteo.desktop: fix getting version; fix package name (eterbug #17865)

parent a8d13f64
#!/bin/sh
PKGNAME=vinteo.desktop
PKGNAME=vinteo-desktop
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Client for Vinteo videoconferencing server"
......@@ -11,7 +11,7 @@ URL="https://vinteo.com"
arch=amd64
pkgtype=deb
[ "$VERSION" = "*" ] && VERSION="$(eget --list --latest "https://download.vinteo.com/VinteoClient/linux/3.*" | xargs basename)"
[ "$VERSION" = "*" ] && VERSION="$(eget -q -O- "https://vinteo.ru/download/vinteo-desktop/" | grep -o -m 1 "Версия продукта [0-9].[0-9].[0-9]" | awk '{print $3}' )"
[ -n "$VERSION" ] || fatal "Can't get version"
# use rpm, but not for ALT
......@@ -19,10 +19,10 @@ pkgtype=deb
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/astralinux/vinteo-desktop-$VERSION-$arch.$pkgtype"
;;
*)
PKGURL="https://download.vinteo.com/VinteoClient/linux/$VERSION/Vinteo.Desktop-$VERSION-$arch.$pkgtype"
PKGURL="https://download.vinteo.com/VinteoClient/linux/$VERSION/vinteo-desktop-$VERSION-$arch.$pkgtype"
;;
esac
......
......@@ -4,7 +4,7 @@
BUILDROOT="$1"
SPEC="$2"
PRODUCT=vinteo.desktop
PRODUCT=vinteo-desktop
PRODUCTDIR=/opt/VinteoDesktop
. $(dirname $0)/common-chromium-browser.sh
......
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