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