#!/bin/sh# TODO: common placefatal(){echo"FATAL: $*">&2exit 1}PKGNAME=onlyoffice-desktopeditorsif["$1"="--remove"];thenepm remove $PKGNAMEexitfi["$1"!="--run"]&&echo"Install ONLYOFFICE for Linux from the official site"&&exit["$($DISTRVENDOR-a)"!="x86_64"]&&echo"Only x86_64 is supported"&&exit 1#arch=$($DISTRVENDOR --distro-arch)arch=amd64#pkgtype=$($DISTRVENDOR -p)pkgtype=debPKG="https://download.onlyoffice.com/install/desktop/editors/linux/$(epm print constructname $PKGNAME""$arch deb)"epm install"$PKG"