mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
* fix: incorrect linux install path * fix: synchronously modify the Linux postinst/uninst script
23 lines
552 B
Bash
23 lines
552 B
Bash
#!/bin/bash
|
|
|
|
case "$1" in
|
|
remove|purge|0)
|
|
if type update-alternatives >/dev/null 2>&1; then
|
|
update-alternatives --remove 'clash-party' '/opt/clash-party/mihomo-party' 2>/dev/null || true
|
|
fi
|
|
|
|
[ -L '/usr/bin/clash-party' ] && rm -f '/usr/bin/clash-party'
|
|
|
|
if hash update-mime-database 2>/dev/null; then
|
|
update-mime-database /usr/share/mime || true
|
|
fi
|
|
|
|
if hash update-desktop-database 2>/dev/null; then
|
|
update-desktop-database /usr/share/applications || true
|
|
fi
|
|
;;
|
|
*)
|
|
# others
|
|
;;
|
|
esac
|