Skip to content

Commit c62d438

Browse files
author
tdjisdj
authored
1 parent 338cedb commit c62d438

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

libs/package_debian.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ Description: Qt based cross-platform GUI proxy configuration manager (backend: v
2020
EOF
2121

2222
cat >nekoray/DEBIAN/postinst <<-EOF
23-
if [ -z /usr/share/applications/nekoray.desktop ]; then
23+
if [ ! -s /usr/share/applications/nekoray.desktop ]; then
2424
cat >/usr/share/applications/nekoray.desktop<<-END
25-
[Desktop Entry]
26-
Name=nekoray
27-
Version=$version
28-
Comment=Qt based cross-platform GUI proxy configuration manager (backend: v2ray / sing-box)
29-
Exec=/opt/nekoray/nekoray -appdata
30-
Icon=/opt/nekoray/nekoray.png
31-
Terminal=false
32-
Type=Application
33-
Categories=Network;Application;
25+
[Desktop Entry]
26+
Name=nekoray
27+
Version=$version
28+
Comment=Qt based cross-platform GUI proxy configuration manager (backend: v2ray / sing-box)
29+
Exec=/opt/nekoray/nekoray -appdata
30+
Icon=/opt/nekoray/nekoray.png
31+
Terminal=false
32+
Type=Application
33+
Categories=Network;Application;
3434
END
3535
else
3636
sed -i "s/^Version=.*/Version=$version/" /usr/share/applications/nekoray.desktop

0 commit comments

Comments
 (0)