diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83d7663..07e4f6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/build/linux/postinst b/build/linux/postinst index b36118c..4196776 100644 --- a/build/linux/postinst +++ b/build/linux/postinst @@ -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 diff --git a/build/linux/postuninst b/build/linux/postuninst index dead352..7d6ea0c 100644 --- a/build/linux/postuninst +++ b/build/linux/postuninst @@ -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