mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 05:03:02 +00:00
Update package-debian.sh
This commit is contained in:
parent
0808592eb5
commit
2b70aac075
1 changed files with 8 additions and 7 deletions
|
|
@ -32,9 +32,8 @@ Depends: libc6 (>= 2.34), fontconfig (>= 2.13.1), desktop-file-utils (>= 0.26),
|
|||
Description: A GUI client for Windows and Linux, support Xray core and sing-box-core and others
|
||||
EOF
|
||||
|
||||
cat >"${PackagePath}/DEBIAN/postinst" <<-EOF
|
||||
if [ ! -s /usr/share/applications/v2rayN.desktop ]; then
|
||||
cat >/usr/share/applications/v2rayN.desktop<<-END
|
||||
mkdir -p "${PackagePath}/usr/share/applications"
|
||||
cat >"${PackagePath}/usr/share/applications/v2rayN.desktop" <<-EOF
|
||||
[Desktop Entry]
|
||||
Name=v2rayN
|
||||
Comment=A GUI client for Windows and Linux, support Xray core and sing-box-core and others
|
||||
|
|
@ -43,10 +42,12 @@ Icon=/opt/v2rayN/v2rayN.png
|
|||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Network;Application;
|
||||
END
|
||||
fi
|
||||
EOF
|
||||
|
||||
update-desktop-database
|
||||
cat >"${PackagePath}/DEBIAN/postinst" <<-'EOF'
|
||||
set -e
|
||||
update-desktop-database || true
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
sudo chmod 0755 "${PackagePath}/DEBIAN/postinst"
|
||||
|
|
|
|||
Loading…
Reference in a new issue