Compare commits

..

2 Commits

Author SHA1 Message Date
Justin
b272634c11
fix: prevent event propagation on button press in proxies page 2025-10-21 14:30:44 +08:00
Moon
b02d794092
fix: change deb/rpm install path from "mihomo-party" to "clash-party" (#1303)
* fix: incorrect linux install path

* fix: synchronously modify the Linux postinst/uninst script
2025-10-21 11:41:02 +08:00
4 changed files with 15 additions and 13 deletions

View File

@ -266,7 +266,7 @@ jobs:
run: |
pnpm install
pnpm add @mihomo-party/sysproxy-linux-${{ matrix.arch }}-gnu
sed -i "s/productName: Clash Party/productName: mihomo-party/" electron-builder.yml
sed -i "s/productName: Clash Party/productName: clash-party/" electron-builder.yml
- name: Update Version for Dev Build
if: github.event_name == 'workflow_dispatch'
env:

View File

@ -4,19 +4,19 @@ set -e
if type update-alternatives >/dev/null 2>&1; then
# Remove previous link if it doesn't use update-alternatives
if [ -L '/usr/bin/mihomo-party' ] && [ -e '/usr/bin/mihomo-party' ] && [ "$(readlink '/usr/bin/mihomo-party')" != '/etc/alternatives/mihomo-party' ]; then
rm -f '/usr/bin/mihomo-party'
if [ -L '/usr/bin/clash-party' ] && [ -e '/usr/bin/clash-party' ] && [ "$(readlink '/usr/bin/clash-party')" != '/etc/alternatives/clash-party' ]; then
rm -f '/usr/bin/clash-party'
fi
update-alternatives --install '/usr/bin/mihomo-party' 'mihomo-party' '/opt/mihomo-party/mihomo-party' 100 || ln -sf '/opt/mihomo-party/mihomo-party' '/usr/bin/mihomo-party'
update-alternatives --install '/usr/bin/clash-party' 'clash-party' '/opt/clash-party/mihomo-party' 100 || ln -sf '/opt/clash-party/mihomo-party' '/usr/bin/clash-party'
else
ln -sf '/opt/mihomo-party/mihomo-party' '/usr/bin/mihomo-party'
ln -sf '/opt/clash-party/mihomo-party' '/usr/bin/clash-party'
fi
chmod 4755 '/opt/mihomo-party/chrome-sandbox' 2>/dev/null || true
chmod 4755 '/opt/clash-party/chrome-sandbox' 2>/dev/null || true
chmod +sx /opt/mihomo-party/resources/sidecar/mihomo 2>/dev/null || true
chmod +sx /opt/mihomo-party/resources/sidecar/mihomo-alpha 2>/dev/null || true
chmod +sx /opt/mihomo-party/resources/sidecar/mihomo-smart 2>/dev/null || true
chmod +sx /opt/clash-party/resources/sidecar/mihomo 2>/dev/null || true
chmod +sx /opt/clash-party/resources/sidecar/mihomo-alpha 2>/dev/null || true
chmod +sx /opt/clash-party/resources/sidecar/mihomo-smart 2>/dev/null || true
if hash update-mime-database 2>/dev/null; then
update-mime-database /usr/share/mime || true

View File

@ -3,10 +3,10 @@
case "$1" in
remove|purge|0)
if type update-alternatives >/dev/null 2>&1; then
update-alternatives --remove 'mihomo-party' '/opt/mihomo-party/mihomo-party' 2>/dev/null || true
update-alternatives --remove 'clash-party' '/opt/clash-party/mihomo-party' 2>/dev/null || true
fi
[ -L '/usr/bin/mihomo-party' ] && rm -f '/usr/bin/mihomo-party'
[ -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

View File

@ -357,7 +357,8 @@ const Proxies: React.FC = () => {
variant="light"
size="sm"
isIconOnly
onPress={() => {
onPress={(e) => {
e.stopPropagation()
if (!isOpen[index]) {
setIsOpen((prev) => {
const newOpen = [...prev]
@ -388,7 +389,8 @@ const Proxies: React.FC = () => {
isLoading={delaying[index]}
size="sm"
isIconOnly
onPress={() => {
onPress={(e) => {
e.stopPropagation()
onGroupDelay(index)
}}
>