You need to sign in or sign up before continuing.
yandex-disk.sh 770 Bytes
Newer Older
1 2 3
#!/bin/sh

PKGNAME=yandex-disk
4
SUPPORTEDARCHES="x86_64 x86"
5
VERSION="$2"
6
DESCRIPTION="Yandex Disk from the official site"
7
URL="https://360.yandex.com/disk/download/"
8

9
. $(dirname $0)/common.sh
10

11
warn_version_is_not_supported
12

13 14 15 16
# https://repo.yandex.ru/yandex-disk/yandex-disk_latest_amd64.deb
# https://repo.yandex.ru/yandex-disk/yandex-disk-latest.x86_64.rpm
# https://repo.yandex.ru/yandex-disk/yandex-disk_latest_i386.deb
# https://repo.yandex.ru/yandex-disk/yandex-disk-latest.i386.rpm
17
# epm uses eget to download * names
18

19
PKGURL="https://repo.yandex.ru/yandex-disk/$(epm print constructname $PKGNAME "latest")"
20 21

install_pkgurl
22 23 24 25 26 27 28

# Install also tray indicator
if [ "$(epm print info -s)" = "alt" ] ; then
    epm install --skip-installed yandex-disk-indicator
fi

true