Commit f783032f authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play myoffice: use latest version from vendor (etebug #18228)

parent d9e98664
......@@ -9,26 +9,17 @@ URL="https://myoffice.ru/products/standard-home-edition/"
. $(dirname $0)/common.sh
pkgtype=$(epm print info -p)
# /var/lib/dpkg/info/myoffice-standard-home-edition.postinst: line 62: xdg-desktop-menu: command not found
epm assure xdg-desktop-menu xdg-utils
delim="-"
if [ "$pkgtype" != "rpm" ] ; then
delim="_"
pkgtype="deb"
fi
# https://preset.myoffice-app.ru/myoffice-standard-home-edition-2.3.0-x86_64.rpm
# https://preset.myoffice-app.ru/myoffice-standard-home-edition_2.3.0_amd64.deb
# https://preset.myoffice-app.ru/myoffice-standard-home-edition-3.2-139.x86_64.rpm
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" "" "$pkgtype" "$delim")"
if [ "$VERSION" = "*" ] ; then
PKGURL="$(eget --list --latest https://myoffice.ru/products/standard-home-edition/ "$PKGMASK")"
else
PKGURL="https://preset.myoffice-app.ru/$PKGMASK"
fi
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKGURL="https://preset.myoffice-app.ru/MyOfficeStandardHomeEdition.rpm"
;;
*)
PKGURL="https://preset.myoffice-app.ru/MyOfficeStandardHomeEdition.deb"
;;
esac
epm install "$PKGURL"
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