Commit 6e6e60ea authored by CatSema's avatar CatSema Committed by Vitaly Lipatov

epm repack: updated icon paths for Nekoray and added categories to the .desktop file

parent dea4dc99
...@@ -3,26 +3,30 @@ ...@@ -3,26 +3,30 @@
# It will be run with two args: buildroot spec # It will be run with two args: buildroot spec
BUILDROOT="$1" BUILDROOT="$1"
SPEC="$2" SPEC="$2"
if [ -f $BUILDROOT/opt/nekoray/nekoray ]; then if [ -f $BUILDROOT/opt/nekoray/nekoray ]; then
PRODUCT=nekoray PRODUCT=nekoray
else else
PRODUCT=nekobox PRODUCT=nekobox
fi fi
PRODUCTDIR=/opt/nekoray PRODUCTDIR=/opt/nekoray
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
add_bin_link_command add_bin_link_command
add_libs_requires
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry] [Desktop Entry]
Name=Nekoray Name=Nekoray
Comment=Qt based cross-platform GUI proxy configuration manager (backend: Xray / sing-box) Comment=Qt based cross-platform GUI proxy configuration manager (backend: Xray / sing-box)
Exec=$PRODUCT -- %u -appdata Exec=$PRODUCT -- %u -appdata
Icon=$PRODUCTDIR/$PRODUCT.png Icon=$PRODUCT
Type=Application Type=Application
Terminal=false Terminal=false
Categories=Network; Categories=Network;Internet;Utility;
EOF 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