File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ Description: Qt based cross-platform GUI proxy configuration manager (backend: v
2020EOF
2121
2222cat > 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;
3434END
3535else
3636 sed -i "s/^Version=.*/Version=$version /" /usr/share/applications/nekoray.desktop
You can’t perform that action at this time.
0 commit comments