Files
electron-4/electron-builder.yml
2025-10-31 10:10:33 +08:00

76 lines
2.1 KiB
YAML

appId: dzsp_shijingjun_offline_Y_save
productName: 实景三维电子沙盘系统
directories:
buildResources: build
files:
- 'out/**/*'
- 'package.json'
- 'resources/**/*'
- '!node_modules/**/*'
- '!**/.vscode/*'
- '!src/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintcache,eslint.config.mjs,.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}'
extraFiles:
- from: './ffplay/'
to: './ffplay'
extraResources:
- from: 'node_modules'
to: 'node_modules'
asar: true
asarUnpack:
- resources/**
- node_modules/**/*.node
- node_modules/**/*.dll
win:
executableName: 实景三维电子沙盘系统
icon: build/icons/81.ico
nsis:
artifactName: 实景三维电子沙盘系统-${version}-setup.${ext}
shortcutName: 实景三维电子沙盘系统
uninstallDisplayName: 实景三维电子沙盘系统
createDesktopShortcut: always
include: "installer.nsh"
oneClick: false
perMachine: true
allowToChangeInstallationDirectory: true
language: "2052"
mac:
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
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
# - AppImage
# - snap
- deb
maintainer: electronjs.org
category: Utility
icon: build/icons/81.png
desktop: {
"Icon": "/opt/实景三维电子沙盘系统/icons/81.png"
}
executableArgs: [
"--no-sandbox"
]
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish:
provider: generic
url: https://example.com/auto-updates
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/