Commit 8f30be52 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play myoffice: add direct download for known version

parent 52e6973b
......@@ -14,9 +14,19 @@ 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
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" "" "" "" "[-_]")"
PKGURL="$(eget --list --latest https://myoffice.ru/products/standard-home-edition/ "$PKGMASK")"
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"
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