Compare commits

..

No commits in common. "b272634c11e6ee93493b01e9b9a41941d5d433a1" and "154e2787d5e06531ff3ea99fd8bdf564d2ef8076" have entirely different histories.

4 changed files with 13 additions and 15 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: clash-party/" electron-builder.yml
sed -i "s/productName: Clash Party/productName: mihomo-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/clash-party' ] && [ -e '/usr/bin/clash-party' ] && [ "$(readlink '/usr/bin/clash-party')" != '/etc/alternatives/clash-party' ]; then
rm -f '/usr/bin/clash-party'
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'
fi
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'
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'
else
ln -sf '/opt/clash-party/mihomo-party' '/usr/bin/clash-party'
ln -sf '/opt/mihomo-party/mihomo-party' '/usr/bin/mihomo-party'
fi
chmod 4755 '/opt/clash-party/chrome-sandbox' 2>/dev/null || true
chmod 4755 '/opt/mihomo-party/chrome-sandbox' 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
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
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 'clash-party' '/opt/clash-party/mihomo-party' 2>/dev/null || true
update-alternatives --remove 'mihomo-party' '/opt/mihomo-party/mihomo-party' 2>/dev/null || true
fi
[ -L '/usr/bin/clash-party' ] && rm -f '/usr/bin/clash-party'
[ -L '/usr/bin/mihomo-party' ] && rm -f '/usr/bin/mihomo-party'
if hash update-mime-database 2>/dev/null; then
update-mime-database /usr/share/mime || true

View File

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