mihomo-party/electron-builder.yml

72 lines
2.0 KiB
YAML
Raw Permalink Normal View History

2024-07-30 11:04:18 +08:00
appId: party.mihomo.app
2024-10-16 21:55:42 +08:00
productName: Mihomo Party
2024-10-30 16:58:03 +08:00
electronLanguages: zh-CN
2024-07-30 11:04:18 +08:00
directories:
buildResources: build
files:
- '!**/.vscode/*'
- '!src/*'
2024-08-07 15:50:33 +08:00
- '!aur/*'
- '!images/*'
- '!scripts/*'
2024-08-17 12:04:05 +08:00
- '!extra/*'
2024-08-07 15:50:33 +08:00
- '!tailwind.config.js'
- '!postcss.config.js'
2024-07-30 11:04:18 +08:00
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
2024-07-31 12:38:32 +08:00
extraResources:
2024-08-17 12:04:05 +08:00
- from: './extra/'
2024-07-31 12:38:32 +08:00
to: ''
2024-08-04 13:30:40 +08:00
protocols:
name: 'Mihomo Party URI Scheme'
schemes:
- 'clash'
- 'mihomo'
2024-07-30 11:04:18 +08:00
win:
2024-08-14 16:38:40 +08:00
target:
- nsis
- 7z
artifactName: ${name}-windows-${version}-${arch}-portable.${ext}
2024-08-05 17:20:57 +08:00
nsis:
2024-08-14 16:38:40 +08:00
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
2024-07-30 11:04:18 +08:00
uninstallDisplayName: ${productName}
allowToChangeInstallationDirectory: true
oneClick: false
perMachine: true
createDesktopShortcut: always
mac:
target:
2024-10-16 14:56:30 +08:00
- pkg
2024-07-30 11:04:18 +08:00
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
2024-08-05 17:20:57 +08:00
artifactName: ${name}-macos-${version}-${arch}.${ext}
2024-10-16 16:41:44 +08:00
pkg:
allowAnywhere: false
allowCurrentUserHome: false
2024-10-17 11:14:44 +08:00
background:
alignment: bottomleft
file: build/background.png
2024-07-30 11:04:18 +08:00
linux:
2024-08-04 13:30:40 +08:00
desktop:
2024-10-02 13:16:27 +08:00
Name: Mihomo Party
2024-08-04 13:30:40 +08:00
MimeType: 'x-scheme-handler/clash;x-scheme-handler/mihomo'
2024-07-30 11:04:18 +08:00
target:
- deb
2024-07-30 11:17:41 +08:00
- rpm
2024-10-16 21:55:42 +08:00
maintainer: mihomo-party-org
2024-07-30 11:04:18 +08:00
category: Utility
2024-08-05 17:20:57 +08:00
artifactName: ${name}-linux-${version}-${arch}.${ext}
deb:
2024-10-16 10:58:16 +08:00
afterInstall: 'build/linux/postinst'
rpm:
afterInstall: 'build/linux/postinst'
2024-08-06 20:02:26 +08:00
npmRebuild: true
2024-08-05 21:08:58 +08:00
publish: []