Commit 5bc59e2f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: cleanup downloading (using content-disposition feature and empty dir…

epm play: cleanup downloading (using content-disposition feature and empty dir for package download)
parent 6d6d2933
......@@ -51,13 +51,11 @@ esac
[ "$($DISTRVENDOR -d)" = "ALTLinux" ] && epmi --skip-installed fontconfig-disable-type1-font-for-assistant
OPKG=/tmp/$OPKG
$EGET -O $OPKG $URL
epm $repack install "$OPKG" || exit
rm -fv $OPKG
epm $repack install "$URL" || exit
[ "$repack" = "--scripts" ] && echo "Warning! Privileged scripts from the vendor were running."
# TODO:
# after install:
#/usr/share/assistantd/daemon.sh --install
#/opt/assistant/scripts/fonts.sh --install
......@@ -2,6 +2,7 @@
PKGNAME=code
DESCRIPTION="Visual Studio Code from the official site"
TIPS="Run epm play code <version> to install specific version."
. $(dirname $0)/common.sh
......
......@@ -8,10 +8,5 @@ DESCRIPTION="Discord from the official site"
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# FIXME: improve eget to support ? not ask mask (detect by =?)
PKG=/tmp/discord.deb
$EGET -O $PKG "https://discord.com/api/download?platform=linux&format=deb"
#PKG="https://dl.discordapp.net/apps/linux/0.0.12/discord-0.0.12.deb"
epm install "https://discord.com/api/download?platform=linux&format=deb"
epm install "$PKG" || exit
rm -fv $PKG
......@@ -2,6 +2,7 @@
PRODUCTDIR=/opt/yandex/browser
DESCRIPTION="Yandex browser from the official site"
TIPS="Run epm play yandex-browser beta to install beta version of the browser."
BRANCH=stable
if [ "$2" = "beta" ] || epm installed yandex-browser-beta ; then
......
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