tweak display name
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions

This commit is contained in:
pompurin404 2024-10-02 14:38:21 +08:00
parent b5e1e629c5
commit 531a3e2759
No known key found for this signature in database
4 changed files with 5 additions and 4 deletions

View File

@ -196,7 +196,9 @@ jobs:
env:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: pnpm build:mac --${{ matrix.arch }}
run: |
sed -i "s/productName: mihomo-party/productName: Mihomo Party/" electron-builder.yml
pnpm build:mac --${{ matrix.arch }}
- name: Generate checksums
run: pnpm checksum .dmg
- name: Upload Artifacts

View File

@ -1,6 +1,5 @@
appId: party.mihomo.app
productName: mihomo-party
executableName: mihomo-party
directories:
buildResources: build
files:

View File

@ -96,7 +96,7 @@ export async function downloadAndInstallUpdate(version: string): Promise<void> {
)
try {
await execPromise(`mv /Applications/${name}.app /tmp`)
await execPromise('cp -R "/Volumes/mihomo-party/mihomo-party.app" /Applications/')
await execPromise('cp -R "/Volumes/mihomo-party/Mihomo Party.app" /Applications/')
await execPromise(`rm -rf /tmp/${name}.app`)
} catch (e) {
await execPromise(`mv /tmp/${name}.app /Applications`)

View File

@ -13,7 +13,7 @@ export function dataDir(): string {
if (isPortable()) {
return path.join(exeDir(), 'data')
} else {
return app.getPath('userData')
return path.join(app.getPath('appData'), 'mihomo-party')
}
}