mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
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
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:
parent
b5e1e629c5
commit
531a3e2759
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 "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