You need to sign in or sign up before continuing.
nekoray.sh 568 Bytes
Newer Older
Valentin Pechenov's avatar
Valentin Pechenov committed
1 2 3 4 5
#!/bin/sh -x

# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
6 7 8 9 10 11
if [ -f $BUILDROOT/opt/nekoray/nekoray ]
then
	PRODUCT=nekoray
else
	PRODUCT=nekobox
fi
Valentin Pechenov's avatar
Valentin Pechenov committed
12 13 14 15 16 17 18 19 20 21 22 23 24
PRODUCTDIR=/opt/nekoray

. $(dirname $0)/common.sh

add_bin_link_command

add_libs_requires

cat <<EOF |create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Name=Nekoray
Comment=Qt based cross-platform GUI proxy configuration manager (backend: Xray / sing-box)
Exec=$PRODUCT -- %u -appdata
25
Icon=/opt/$PRODUCT/$PRODUCT.png
Valentin Pechenov's avatar
Valentin Pechenov committed
26 27 28 29
Type=Application
Terminal=false
Categories=Network;
EOF