Skip to content

Commit

Permalink
change windows product name
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 16, 2024
1 parent dc9a41e commit e32a7f1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,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
pnpm prepare --${{ matrix.arch }}
- name: Build
env:
Expand Down Expand Up @@ -197,7 +198,6 @@ jobs:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: |
sed -i "" -e "s/productName: mihomo-party/productName: Mihomo Party/" electron-builder.yml
chmod +x build/pkg-scripts/postinstall
pnpm build:mac --${{ matrix.arch }}
- name: Generate checksums
Expand Down Expand Up @@ -248,7 +248,6 @@ jobs:
npm_config_arch: ${{ matrix.arch }}
npm_config_target_arch: ${{ matrix.arch }}
run: |
sed -i "" -e "s/productName: mihomo-party/productName: Mihomo Party/" electron-builder.yml
sed -i "" -e "s/macos/catalina/" electron-builder.yml
chmod +x build/pkg-scripts/postinstall
pnpm build:mac --${{ matrix.arch }}
Expand Down
1 change: 1 addition & 0 deletions aur/mihomo-party-electron/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ options=('!lto')

prepare(){
cd $srcdir/${_pkgname}-${pkgver}
sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml
pnpm install
}

Expand Down
1 change: 1 addition & 0 deletions aur/mihomo-party-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pkgver() {

prepare(){
cd $srcdir/${_pkgname}
sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml
pnpm install
}

Expand Down
1 change: 1 addition & 0 deletions aur/mihomo-party/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ options=('!lto')

prepare(){
cd $srcdir/${pkgname}-${pkgver}
sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml
pnpm install
}

Expand Down
3 changes: 1 addition & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
appId: party.mihomo.app
productName: mihomo-party
productName: Mihomo Party
directories:
buildResources: build
files:
Expand Down Expand Up @@ -30,7 +30,6 @@ win:
artifactName: ${name}-windows-${version}-${arch}-portable.${ext}
nsis:
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
shortcutName: Mihomo Party
uninstallDisplayName: ${productName}
allowToChangeInstallationDirectory: true
oneClick: false
Expand Down
2 changes: 1 addition & 1 deletion src/main/utils/dirs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function dataDir(): string {
if (isPortable()) {
return path.join(exeDir(), 'data')
} else {
return path.join(app.getPath('appData'), 'mihomo-party')
return app.getPath('userData')
}
}

Expand Down

0 comments on commit e32a7f1

Please sign in to comment.