edge.sh 488 Bytes
Newer Older
1 2
#!/bin/sh

3
BASEPKGNAME=microsoft-edge
4
SUPPORTEDARCHES="x86_64"
5
PRODUCTALT="stable beta dev"
6
DESCRIPTION="Microsoft Edge browser (dev) from the official site"
7

8 9 10 11 12 13 14
BRANCH=stable
for i in $PRODUCTALT ; do
    if [ "$2" = "$i" ] || epm installed $BASEPKGNAME-$i ; then
        BRANCH="$i"
    fi
done
PKGNAME=$BASEPKGNAME-$BRANCH
15

16

17
. $(dirname $0)/common.sh
18 19

# epm uses eget to download * names
20
epm install "https://packages.microsoft.com/repos/edge/pool/main/m/$PKGNAME/${PKGNAME}_*_amd64.deb"