mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
tweak display name
This commit is contained in:
parent
32822703e9
commit
ac734ecf71
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
appId: party.mihomo.app
|
||||
productName: mihomo-party
|
||||
executableName: mihomo-party
|
||||
directories:
|
||||
buildResources: build
|
||||
files:
|
||||
|
|
|
@ -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`)
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user