From 0c38d3eb26dafb3da59ced741ac4d5c044845c96 Mon Sep 17 00:00:00 2001 From: Memory <134070804+Memory2314@users.noreply.github.com> Date: Sat, 30 Aug 2025 08:52:35 +0800 Subject: [PATCH] mihomo-party -> clash-party --- .github/ISSUE_TEMPLATE/bug_report_zh.yml | 4 ++-- .github/ISSUE_TEMPLATE/feature_request_zh.yml | 2 +- .github/workflows/build.yml | 2 +- README.md | 4 ++-- aur/mihomo-party-electron-bin/mihomo-party.desktop | 4 ++-- aur/mihomo-party-electron/PKGBUILD | 2 +- aur/mihomo-party-electron/mihomo-party.desktop | 4 ++-- aur/mihomo-party-git/PKGBUILD | 2 +- aur/mihomo-party/PKGBUILD | 2 +- build/pkg-scripts/postinstall | 2 +- build/pkg-scripts/preinstall | 4 ++-- electron-builder.yml | 6 +++--- package.json | 2 +- scripts/cleanup-mac.sh | 8 ++++---- scripts/telegram.mjs | 4 ++-- src/main/resolve/backup.ts | 8 ++++---- src/main/resolve/gistApi.ts | 14 +++++++------- src/main/resolve/server.ts | 2 +- src/main/resolve/tray.ts | 2 +- src/main/sys/autoRun.ts | 2 +- src/main/utils/dirs.ts | 2 +- src/main/utils/ipc.ts | 2 +- src/renderer/floating.html | 2 +- src/renderer/index.html | 2 +- src/renderer/src/App.tsx | 3 +-- .../src/components/settings/webdav-config.tsx | 2 +- src/renderer/src/locales/en-US.json | 10 +++++----- src/renderer/src/locales/ru-RU.json | 10 +++++----- src/renderer/src/locales/zh-CN.json | 10 +++++----- 29 files changed, 61 insertions(+), 62 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report_zh.yml b/.github/ISSUE_TEMPLATE/bug_report_zh.yml index 0d749cd..3a7e1d7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report_zh.yml +++ b/.github/ISSUE_TEMPLATE/bug_report_zh.yml @@ -1,5 +1,5 @@ name: 错误反馈 -description: '提交 mihomo-party 漏洞' +description: '提交 clash-party 漏洞' title: '[Bug] ' body: - type: checkboxes @@ -34,7 +34,7 @@ body: required: true - type: input attributes: - label: 发生问题 mihomo-party 版本 + label: 发生问题 clash-party 版本 validations: required: true - type: textarea diff --git a/.github/ISSUE_TEMPLATE/feature_request_zh.yml b/.github/ISSUE_TEMPLATE/feature_request_zh.yml index bc4387b..35e9e4b 100644 --- a/.github/ISSUE_TEMPLATE/feature_request_zh.yml +++ b/.github/ISSUE_TEMPLATE/feature_request_zh.yml @@ -1,5 +1,5 @@ name: 功能请求 -description: '请求 mihomo-party 功能' +description: '请求 clash-party 功能' title: '[Feature] ' body: - type: checkboxes diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7c3ea2..1573bd1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -227,7 +227,7 @@ jobs: run: | pnpm install pnpm add @mihomo-party/sysproxy-linux-${{ matrix.arch }}-gnu - sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml + sed -i "s/productName: Clash Party/productName: mihomo-party/" electron-builder.yml pnpm prepare --${{ matrix.arch }} - name: Build env: diff --git a/README.md b/README.md index d9f202b..8318662 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ ##### [狗狗加速 —— 技术流机场 Doggygo VPN](https://party.dginv.click/#/register?code=ARdo0mXx) - 高性能海外机场,稳定首选,海外团队,无跑路风险 -- Mihomo Party专属8折优惠码:party,仅有500份 +- Clash Party专属8折优惠码:party,仅有500份 - Party专属链接注册送 3 天,每天 1G 流量 [免费试用](https://party.dginv.click/#/register?code=ARdo0mXx) - 优惠套餐每月仅需 15.8 元,160G 流量,年付 8 折 -- 全球首家支持Hysteria1/2 协议,集群负载均衡设计,高速专线,基于最新UDP quic技术,极低延迟,无视晚高峰,4K 秒开,配合Mihomo Party食用更省心! +- 全球首家支持Hysteria1/2 协议,集群负载均衡设计,高速专线,基于最新UDP quic技术,极低延迟,无视晚高峰,4K 秒开,配合Clash Party食用更省心! - 解锁流媒体及 ChatGPT - 官网:[https://狗狗加速.com](https://party.dginv.click/#/register?code=ARdo0mXx) diff --git a/aur/mihomo-party-electron-bin/mihomo-party.desktop b/aur/mihomo-party-electron-bin/mihomo-party.desktop index 8cbedcd..95d5d47 100644 --- a/aur/mihomo-party-electron-bin/mihomo-party.desktop +++ b/aur/mihomo-party-electron-bin/mihomo-party.desktop @@ -1,10 +1,10 @@ [Desktop Entry] -Name=Mihomo Party +Name=Clash Party Exec=mihomo-party %U Terminal=false Type=Application Icon=mihomo-party StartupWMClass=mihomo-party MimeType=x-scheme-handler/clash;x-scheme-handler/mihomo; -Comment=Mihomo Party +Comment=Clash Party Categories=Utility; diff --git a/aur/mihomo-party-electron/PKGBUILD b/aur/mihomo-party-electron/PKGBUILD index 29ae0bd..c2d5588 100644 --- a/aur/mihomo-party-electron/PKGBUILD +++ b/aur/mihomo-party-electron/PKGBUILD @@ -24,7 +24,7 @@ options=('!lto') prepare(){ cd $srcdir/${_pkgname}-${pkgver} - sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml + sed -i "s/productName: Mihomo Party/productName: clash-party/" electron-builder.yml pnpm install } diff --git a/aur/mihomo-party-electron/mihomo-party.desktop b/aur/mihomo-party-electron/mihomo-party.desktop index 8cbedcd..95d5d47 100644 --- a/aur/mihomo-party-electron/mihomo-party.desktop +++ b/aur/mihomo-party-electron/mihomo-party.desktop @@ -1,10 +1,10 @@ [Desktop Entry] -Name=Mihomo Party +Name=Clash Party Exec=mihomo-party %U Terminal=false Type=Application Icon=mihomo-party StartupWMClass=mihomo-party MimeType=x-scheme-handler/clash;x-scheme-handler/mihomo; -Comment=Mihomo Party +Comment=Clash Party Categories=Utility; diff --git a/aur/mihomo-party-git/PKGBUILD b/aur/mihomo-party-git/PKGBUILD index b5fc2c0..00a008c 100644 --- a/aur/mihomo-party-git/PKGBUILD +++ b/aur/mihomo-party-git/PKGBUILD @@ -25,7 +25,7 @@ pkgver() { prepare(){ cd $srcdir/${_pkgname} - sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml + sed -i "s/productName: Mihomo Party/productName: clash-party/" electron-builder.yml pnpm install } diff --git a/aur/mihomo-party/PKGBUILD b/aur/mihomo-party/PKGBUILD index eb49559..5a00dbd 100644 --- a/aur/mihomo-party/PKGBUILD +++ b/aur/mihomo-party/PKGBUILD @@ -20,7 +20,7 @@ options=('!lto') prepare(){ cd $srcdir/${pkgname}-${pkgver} - sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml + sed -i "s/productName: Mihomo Party/productName: clash-party/" electron-builder.yml pnpm install } diff --git a/build/pkg-scripts/postinstall b/build/pkg-scripts/postinstall index 22d566e..5b145c9 100644 --- a/build/pkg-scripts/postinstall +++ b/build/pkg-scripts/postinstall @@ -19,7 +19,7 @@ fi if [[ $2 == *".app" ]]; then APP_PATH="$2" else - APP_PATH="$2/Mihomo Party.app" + APP_PATH="$2/Clash Party.app" fi HELPER_PATH="/Library/PrivilegedHelperTools/party.mihomo.helper" diff --git a/build/pkg-scripts/preinstall b/build/pkg-scripts/preinstall index 48aaadc..c403638 100644 --- a/build/pkg-scripts/preinstall +++ b/build/pkg-scripts/preinstall @@ -20,7 +20,7 @@ fi rm -f "$HELPER_PATH" # 清理可能存在的旧版本文件 -rm -rf "/Applications/Mihomo Party.app" -rm -rf "/Applications/Mihomo\\ Party.app" +rm -rf "/Applications/Clash Party.app" +rm -rf "/Applications/Clash\\ Party.app" exit 0 diff --git a/electron-builder.yml b/electron-builder.yml index 3fde595..ba35520 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,5 +1,5 @@ appId: party.mihomo.app -productName: Mihomo Party +productName: Clash Party directories: buildResources: build files: @@ -19,7 +19,7 @@ extraResources: - from: './extra/' to: '' protocols: - name: 'Mihomo Party URI Scheme' + name: 'Clash Party URI Scheme' schemes: - 'clash' - 'mihomo' @@ -57,7 +57,7 @@ pkg: linux: desktop: entry: - Name: Mihomo Party + Name: Clash Party MimeType: 'x-scheme-handler/clash;x-scheme-handler/mihomo' target: - deb diff --git a/package.json b/package.json index 3df601a..42f6bdf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mihomo-party", "version": "1.8.6-dev", - "description": "Mihomo Party", + "description": "Clash Party", "main": "./out/main/index.js", "author": "mihomo-party-org", "homepage": "https://mihomo.party", diff --git a/scripts/cleanup-mac.sh b/scripts/cleanup-mac.sh index f9c207f..c8d427d 100755 --- a/scripts/cleanup-mac.sh +++ b/scripts/cleanup-mac.sh @@ -1,7 +1,7 @@ #!/bin/bash -echo "=== Mihomo Party Cleanup Tool ===" -echo "This script will remove all Mihomo Party related files and services." +echo "=== Clash Party Cleanup Tool ===" +echo "This script will remove all Clash Party related files and services." read -p "Are you sure you want to continue? (y/N) " -n 1 -r echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then @@ -17,8 +17,8 @@ sudo launchctl unload /Library/LaunchDaemons/party.mihomo.helper.plist 2>/dev/nu echo "Removing files..." sudo rm -f /Library/LaunchDaemons/party.mihomo.helper.plist sudo rm -f /Library/PrivilegedHelperTools/party.mihomo.helper -sudo rm -rf "/Applications/Mihomo Party.app" -sudo rm -rf "/Applications/Mihomo\\ Party.app" +sudo rm -rf "/Applications/Clash Party.app" +sudo rm -rf "/Applications/Clash\\ Party.app" sudo rm -rf ~/Library/Application\ Support/mihomo-party sudo rm -rf ~/Library/Caches/mihomo-party sudo rm -f ~/Library/Preferences/party.mihomo.app.helper.plist diff --git a/scripts/telegram.mjs b/scripts/telegram.mjs index 508c853..a493817 100644 --- a/scripts/telegram.mjs +++ b/scripts/telegram.mjs @@ -46,7 +46,7 @@ if (isDevRelease) { const commitSha = process.env.GITHUB_SHA || 'unknown' const shortCommitSha = commitSha.substring(0, 7) - content = `🚧 Mihomo Party Dev Build 开发版本发布\n\n` + content = `🚧 Clash Party Dev Build 开发版本发布\n\n` content += `基于版本: ${version}\n` content += `提交哈希: ${shortCommitSha}\n\n` content += `更新日志:\n` @@ -54,7 +54,7 @@ if (isDevRelease) { content += '\n\n⚠️ 注意:这是开发版本,可能存在不稳定性,仅供测试使用\n' } else { // 正式版本通知 - content = `🌟 Mihomo Party v${version} 正式发布\n\n` + content = `🌟 Clash Party v${version} 正式发布\n\n` content += convertMarkdownToTelegramHTML(changelog) } diff --git a/src/main/resolve/backup.ts b/src/main/resolve/backup.ts index c0aab57..fb1c02f 100644 --- a/src/main/resolve/backup.ts +++ b/src/main/resolve/backup.ts @@ -20,7 +20,7 @@ export async function webdavBackup(): Promise { webdavUrl = '', webdavUsername = '', webdavPassword = '', - webdavDir = 'mihomo-party', + webdavDir = 'clash-party', webdavMaxBackups = 0 } = await getAppConfig() const zip = new AdmZip() @@ -89,7 +89,7 @@ export async function webdavRestore(filename: string): Promise { webdavUrl = '', webdavUsername = '', webdavPassword = '', - webdavDir = 'mihomo-party' + webdavDir = 'clash-party' } = await getAppConfig() const client = createClient(webdavUrl, { @@ -107,7 +107,7 @@ export async function listWebdavBackups(): Promise { webdavUrl = '', webdavUsername = '', webdavPassword = '', - webdavDir = 'mihomo-party' + webdavDir = 'clash-party' } = await getAppConfig() const client = createClient(webdavUrl, { @@ -128,7 +128,7 @@ export async function webdavDelete(filename: string): Promise { webdavUrl = '', webdavUsername = '', webdavPassword = '', - webdavDir = 'mihomo-party' + webdavDir = 'clash-party' } = await getAppConfig() const client = createClient(webdavUrl, { diff --git a/src/main/resolve/gistApi.ts b/src/main/resolve/gistApi.ts index 0d75186..8a9b5e0 100644 --- a/src/main/resolve/gistApi.ts +++ b/src/main/resolve/gistApi.ts @@ -31,9 +31,9 @@ async function createGist(token: string, content: string): Promise { return await axios.post( 'https://api.github.com/gists', { - description: 'Auto Synced Mihomo Party Runtime Config', + description: 'Auto Synced Clash Party Runtime Config', public: false, - files: { 'mihomo-party.yaml': { content } } + files: { 'clash-party.yaml': { content } } }, { headers: { @@ -55,8 +55,8 @@ async function updateGist(token: string, id: string, content: string): Promise { const { githubToken } = await getAppConfig() if (!githubToken) return '' const gists = await listGists(githubToken) - const gist = gists.find((gist) => gist.description === 'Auto Synced Mihomo Party Runtime Config') + const gist = gists.find((gist) => gist.description === 'Auto Synced Clash Party Runtime Config') if (gist) { return gist.html_url } else { await uploadRuntimeConfig() const gists = await listGists(githubToken) const gist = gists.find( - (gist) => gist.description === 'Auto Synced Mihomo Party Runtime Config' + (gist) => gist.description === 'Auto Synced Clash Party Runtime Config' ) if (!gist) throw new Error('Gist not found') return gist.html_url @@ -95,7 +95,7 @@ export async function uploadRuntimeConfig(): Promise { const { githubToken } = await getAppConfig() if (!githubToken) return const gists = await listGists(githubToken) - const gist = gists.find((gist) => gist.description === 'Auto Synced Mihomo Party Runtime Config') + const gist = gists.find((gist) => gist.description === 'Auto Synced Clash Party Runtime Config') const config = await getRuntimeConfigStr() if (gist) { await updateGist(githubToken, gist.id, config) diff --git a/src/main/resolve/server.ts b/src/main/resolve/server.ts index f7eacf4..3696d20 100644 --- a/src/main/resolve/server.ts +++ b/src/main/resolve/server.ts @@ -112,7 +112,7 @@ export async function startSubStoreBackendServer(): Promise { SUB_STORE_BACKEND_API_HOST: subStoreHost, SUB_STORE_DATA_BASE_PATH: subStoreDir(), SUB_STORE_BACKEND_CUSTOM_ICON: icon.toDataURL(), - SUB_STORE_BACKEND_CUSTOM_NAME: 'Mihomo Party', + SUB_STORE_BACKEND_CUSTOM_NAME: 'Clash Party', SUB_STORE_BACKEND_SYNC_CRON: subStoreBackendSyncCron, SUB_STORE_BACKEND_DOWNLOAD_CRON: subStoreBackendDownloadCron, SUB_STORE_BACKEND_UPLOAD_CRON: subStoreBackendUploadCron, diff --git a/src/main/resolve/tray.ts b/src/main/resolve/tray.ts index b409169..fc1de86 100644 --- a/src/main/resolve/tray.ts +++ b/src/main/resolve/tray.ts @@ -342,7 +342,7 @@ export async function createTray(): Promise { if (process.platform === 'win32') { tray = new Tray(icoIcon) } - tray?.setToolTip('Mihomo Party') + tray?.setToolTip('Clash Party') tray?.setIgnoreDoubleClickEvents(true) await updateTrayIcon() diff --git a/src/main/sys/autoRun.ts b/src/main/sys/autoRun.ts index 654cdd1..0b1c252 100644 --- a/src/main/sys/autoRun.ts +++ b/src/main/sys/autoRun.ts @@ -115,7 +115,7 @@ Terminal=false Type=Application Icon=mihomo-party StartupWMClass=mihomo-party -Comment=Mihomo Party +Comment=Clash Party Categories=Utility; ` diff --git a/src/main/utils/dirs.ts b/src/main/utils/dirs.ts index 11ac41f..f0f8cbf 100644 --- a/src/main/utils/dirs.ts +++ b/src/main/utils/dirs.ts @@ -137,7 +137,7 @@ export function logPath(): string { const year = date.getFullYear() const month = String(date.getMonth() + 1).padStart(2, '0') const day = String(date.getDate()).padStart(2, '0') - const name = `mihomo-party-${year}-${month}-${day}` + const name = `clash-party-${year}-${month}-${day}` return path.join(logDir(), `${name}.log`) } diff --git a/src/main/utils/ipc.ts b/src/main/utils/ipc.ts index f1391f9..e25a3d1 100644 --- a/src/main/utils/ipc.ts +++ b/src/main/utils/ipc.ts @@ -285,7 +285,7 @@ export function registerIpcMainHandlers(): void { ipcMain.handle('applyTheme', (_e, theme) => ipcErrorWrapper(applyTheme)(theme)) ipcMain.handle('copyEnv', (_e, type) => ipcErrorWrapper(copyEnv)(type)) ipcMain.handle('alert', (_e, msg) => { - dialog.showErrorBox('Mihomo Party', msg) + dialog.showErrorBox('Clash Party', msg) }) ipcMain.handle('showDetailedError', (_e, title, message) => { dialog.showErrorBox(title, message) diff --git a/src/renderer/floating.html b/src/renderer/floating.html index 48008e3..a99e88a 100644 --- a/src/renderer/floating.html +++ b/src/renderer/floating.html @@ -2,7 +2,7 @@ - Mihomo Party Floating + Clash Party Floating - Mihomo Party + Clash Party { className={`flex justify-between p-2 ${!useWindowFrame && platform === 'darwin' ? 'ml-[60px]' : ''}`} >
- -

ihomo Party

+

Clash Party