Commit 52b0ebc1 authored by CatSema's avatar CatSema Committed by Vitaly Lipatov

epm play: add v2rayn

parent c199d92e
#!/bin/sh
PKGNAME=v2rayN
SUPPORTEDARCHES="x86_64 arm64"
VERSION="$2"
DESCRIPTION="A GUI client for Windows, Linux and macOS, support Xray core and sing-box-core and others"
URL="https://github.com/2dust/v2rayN"
. $(dirname $0)/common.sh
arch="$(epm print info -a)"
case "$arch" in
x86_64)
arch="64"
;;
arm64 | aarch64)
arch="arm64"
;;
esac
if [ "$VERSION" = "*" ]; then
PKGURL=$(get_github_url "https://github.com/2dust/v2rayN/" "v2rayN-linux-${arch}.deb")
else
PKGURL="https://github.com/2dust/v2rayN/releases/download/$VERSION/v2rayN-linux-${arch}.deb"
fi
install_pkgurl
#!/bin/sh -x
BUILDROOT="$1"
SPEC="$2"
PRODUCT=v2rayN
PRODUCTDIR=/opt/$PRODUCT
. $(dirname $0)/common.sh
add_bin_link_command
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Name=v2rayN
Comment=A GUI client for Windows, Linux and macOS, support Xray core and sing-box-core and others
Exec=$PRODUCT %f
Icon=$PRODUCT
Type=Application
Terminal=false
Categories=Network;Internet;Utility;
EOF
install_file $PRODUCTDIR/$PRODUCT.png /usr/share/pixmaps/$PRODUCT.png
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment