tweak display name

This commit is contained in:
pompurin404 2024-10-02 14:38:21 +08:00
parent 32822703e9
commit ac734ecf71
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 "" -e "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')
}
}