You need to sign in or sign up before continuing.
nekoray.sh 573 Bytes
Newer Older
Valentin Pechenov's avatar
Valentin Pechenov committed
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh

PKGNAME=nekoray
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Qt based cross-platform GUI proxy configuration manager (backend: Xray / sing-box)"
URL="https://github.com/MatsuriDayo/nekoray"
. $(dirname $0)/common.sh

arch=x64
pkgtype=deb

13 14 15 16 17

if [ "$VERSION" = "*" ] ; then
	VERSION="$(eget -O- https://api.github.com/repos/MatsuriDayo/nekoray/releases/latest | grep -oP '"tag_name": "\K(.*?)(?=")' | sed 's/v//g')"
fi

18
PKGURL=$(eget --list --latest https://github.com/MatsuriDayo/nekoray/releases "nekoray-$VERSION-*-debian-$arch.$pkgtype")
Valentin Pechenov's avatar
Valentin Pechenov committed
19 20 21

install_pkgurl