edge.sh 502 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/sh

# TODO: common place
fatal()
{
    echo "FATAL: $*" >&2
    exit 1
}

10 11 12 13 14 15 16
PKGNAME=microsoft-edge-dev

if [ "$1" = "--remove" ] ; then
    epm remove $PKGNAME
    exit
fi

17
[ "$1" != "--run" ] && echo "Microsoft Edge browser (dev) from the official site" && exit
18

19
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
20 21 22

# epm uses eget to download * names
epm install "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/microsoft-edge-*_amd64.deb"