aboutsummaryrefslogtreecommitdiff
path: root/web/native-protocol/uninstall
diff options
context:
space:
mode:
Diffstat (limited to 'web/native-protocol/uninstall')
-rwxr-xr-xweb/native-protocol/uninstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/native-protocol/uninstall b/web/native-protocol/uninstall
new file mode 100755
index 0000000..42e074e
--- /dev/null
+++ b/web/native-protocol/uninstall
@@ -0,0 +1,12 @@
+#!/bin/fish
+if fish_is_root_user
+ echo 'Global uninstallation'
+ rm /usr/local/bin/jellynative
+ rm /usr/local/share/applications/jellynative.desktop
+ update-desktop-database /usr/local/share/applications
+else
+ echo 'User uninstallation'
+ rm ~/.local/bin/jellynative
+ rm ~/.local/share/applications/jellynative.desktop
+ update-desktop-database ~/.local/share/applications
+end