mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +08:00
change windows product name
This commit is contained in:
parent
dc9a41ed04
commit
dc8ffb79c6
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -142,6 +142,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pnpm install
|
pnpm install
|
||||||
pnpm add @mihomo-party/sysproxy-linux-${{ matrix.arch }}-gnu
|
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 }}
|
pnpm prepare --${{ matrix.arch }}
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
|
@ -197,7 +198,6 @@ jobs:
|
||||||
npm_config_arch: ${{ matrix.arch }}
|
npm_config_arch: ${{ matrix.arch }}
|
||||||
npm_config_target_arch: ${{ matrix.arch }}
|
npm_config_target_arch: ${{ matrix.arch }}
|
||||||
run: |
|
run: |
|
||||||
sed -i "" -e "s/productName: mihomo-party/productName: Mihomo Party/" electron-builder.yml
|
|
||||||
chmod +x build/pkg-scripts/postinstall
|
chmod +x build/pkg-scripts/postinstall
|
||||||
pnpm build:mac --${{ matrix.arch }}
|
pnpm build:mac --${{ matrix.arch }}
|
||||||
- name: Generate checksums
|
- name: Generate checksums
|
||||||
|
@ -248,7 +248,6 @@ jobs:
|
||||||
npm_config_arch: ${{ matrix.arch }}
|
npm_config_arch: ${{ matrix.arch }}
|
||||||
npm_config_target_arch: ${{ matrix.arch }}
|
npm_config_target_arch: ${{ matrix.arch }}
|
||||||
run: |
|
run: |
|
||||||
sed -i "" -e "s/productName: mihomo-party/productName: Mihomo Party/" electron-builder.yml
|
|
||||||
sed -i "" -e "s/macos/catalina/" electron-builder.yml
|
sed -i "" -e "s/macos/catalina/" electron-builder.yml
|
||||||
chmod +x build/pkg-scripts/postinstall
|
chmod +x build/pkg-scripts/postinstall
|
||||||
pnpm build:mac --${{ matrix.arch }}
|
pnpm build:mac --${{ matrix.arch }}
|
||||||
|
|
|
@ -24,6 +24,7 @@ options=('!lto')
|
||||||
|
|
||||||
prepare(){
|
prepare(){
|
||||||
cd $srcdir/${_pkgname}-${pkgver}
|
cd $srcdir/${_pkgname}-${pkgver}
|
||||||
|
sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml
|
||||||
pnpm install
|
pnpm install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ pkgver() {
|
||||||
|
|
||||||
prepare(){
|
prepare(){
|
||||||
cd $srcdir/${_pkgname}
|
cd $srcdir/${_pkgname}
|
||||||
|
sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml
|
||||||
pnpm install
|
pnpm install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ options=('!lto')
|
||||||
|
|
||||||
prepare(){
|
prepare(){
|
||||||
cd $srcdir/${pkgname}-${pkgver}
|
cd $srcdir/${pkgname}-${pkgver}
|
||||||
|
sed -i "s/productName: Mihomo Party/productName: mihomo-party/" electron-builder.yml
|
||||||
pnpm install
|
pnpm install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
|
|
||||||
- 1.5.0 之后 macOS 改用 pkg 安装方式,不再支持 dmg 安装方式,因此本次更新需要手动下载安装包进行安装
|
- 1.5.0 之后 macOS 改用 pkg 安装方式,不再支持 dmg 安装方式,因此本次更新需要手动下载安装包进行安装
|
||||||
- electron33 已不再支持 macOS 10.15,故为 10.15 提供单独的安装包,需要的用户请自行下载安装,应用内更新时会自动检测系统版本,安装后后续可正常在应用内直接更新
|
- electron33 已不再支持 macOS 10.15,故为 10.15 提供单独的安装包,需要的用户请自行下载安装,应用内更新时会自动检测系统版本,安装后后续可正常在应用内直接更新
|
||||||
|
- 1.5.1 之后 Windows 下 `profuctName` 改为 `Mihomo Party`, 更新后若出现找不到文件报错,手动以管理员权限运行一次即可
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
appId: party.mihomo.app
|
appId: party.mihomo.app
|
||||||
productName: mihomo-party
|
productName: Mihomo Party
|
||||||
directories:
|
directories:
|
||||||
buildResources: build
|
buildResources: build
|
||||||
files:
|
files:
|
||||||
|
@ -30,7 +30,6 @@ win:
|
||||||
artifactName: ${name}-windows-${version}-${arch}-portable.${ext}
|
artifactName: ${name}-windows-${version}-${arch}-portable.${ext}
|
||||||
nsis:
|
nsis:
|
||||||
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
|
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
|
||||||
shortcutName: Mihomo Party
|
|
||||||
uninstallDisplayName: ${productName}
|
uninstallDisplayName: ${productName}
|
||||||
allowToChangeInstallationDirectory: true
|
allowToChangeInstallationDirectory: true
|
||||||
oneClick: false
|
oneClick: false
|
||||||
|
@ -57,7 +56,7 @@ linux:
|
||||||
target:
|
target:
|
||||||
- deb
|
- deb
|
||||||
- rpm
|
- rpm
|
||||||
maintainer: mihomo-party
|
maintainer: mihomo-party-org
|
||||||
category: Utility
|
category: Utility
|
||||||
artifactName: ${name}-linux-${version}-${arch}.${ext}
|
artifactName: ${name}-linux-${version}-${arch}.${ext}
|
||||||
deb:
|
deb:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"version": "1.5.0",
|
"version": "1.5.0",
|
||||||
"description": "Mihomo Party",
|
"description": "Mihomo Party",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "mihomo-party",
|
"author": "mihomo-party-org",
|
||||||
"homepage": "https://mihomo.party",
|
"homepage": "https://mihomo.party",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
|
|
@ -92,15 +92,6 @@ app.on('open-url', async (_event, url) => {
|
||||||
showMainWindow()
|
showMainWindow()
|
||||||
await handleDeepLink(url)
|
await handleDeepLink(url)
|
||||||
})
|
})
|
||||||
// Quit when all windows are closed, except on macOS. There, it's common
|
|
||||||
// for applications and their menu bar to stay active until the user quits
|
|
||||||
// explicitly with Cmd + Q.
|
|
||||||
app.on('window-all-closed', (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
// if (process.platform !== 'darwin') {
|
|
||||||
// app.quit()
|
|
||||||
// }
|
|
||||||
})
|
|
||||||
|
|
||||||
app.on('before-quit', async (e) => {
|
app.on('before-quit', async (e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
@ -109,8 +100,7 @@ app.on('before-quit', async (e) => {
|
||||||
app.exit()
|
app.exit()
|
||||||
})
|
})
|
||||||
|
|
||||||
powerMonitor.on('shutdown', async (e) => {
|
powerMonitor.on('shutdown', async () => {
|
||||||
e.preventDefault()
|
|
||||||
triggerSysProxy(false)
|
triggerSysProxy(false)
|
||||||
await stopCore()
|
await stopCore()
|
||||||
app.exit()
|
app.exit()
|
||||||
|
|
|
@ -13,7 +13,7 @@ export function dataDir(): string {
|
||||||
if (isPortable()) {
|
if (isPortable()) {
|
||||||
return path.join(exeDir(), 'data')
|
return path.join(exeDir(), 'data')
|
||||||
} else {
|
} else {
|
||||||
return path.join(app.getPath('appData'), 'mihomo-party')
|
return app.getPath('userData')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user