#!/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
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
PKGURL=$(eget --list --latest https://github.com/MatsuriDayo/nekoray/releases "nekoray-$VERSION-*-debian-$arch.$pkgtype")
install_pkgurl