Commit 9f60786b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play myoffice: improve xdg-utils checking

parent 5b353ca3
......@@ -2,7 +2,7 @@
PKGNAME=myoffice-standard-home-edition
SUPPORTEDARCHES="x86_64"
DESCRIPTION="MyOffice for Linux from the official site"
DESCRIPTION="MyOffice Standart Home Edition for Linux from the official site"
if [ "$1" = "--remove" ] ; then
# Allow scripts: MyOffice reclaims their rpm package supports ALT
......@@ -16,11 +16,12 @@ fi
arch=$($DISTRVENDOR --distro-arch)
pkgtype=$($DISTRVENDOR -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
# https://preset.myoffice-app.ru/myoffice-standard-home-edition_2022.01-1.28.0.4_amd64
PKGMASK="$(epm print constructname $PKGNAME "*" $arch)"
PKG="$(epm tool eget --list --latest https://myoffice.ru/products/standard-home-edition/ $PKGMASK)" || fatal "Can't get package URL"
# /var/lib/dpkg/info/myoffice-standard-home-edition.postinst: line 62: xdg-desktop-menu: command not found
epm assure xdg-utils
epm --scripts install "$PKG"
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