electron-builder.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. appId: com.local.archive.app
  2. productName: 档案脱机存档
  3. directories:
  4. buildResources: build
  5. files:
  6. - '!**/.vscode/*'
  7. - '!src/*'
  8. - '!electron.vite.config.{js,ts,mjs,cjs}'
  9. - '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
  10. - '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
  11. asarUnpack:
  12. - resources/**
  13. win:
  14. target:
  15. - nsis
  16. executableName: 档案脱机存档
  17. requestedExecutionLevel: 'requireAdministrator'
  18. certificateFile: build/local_archive_win.pfx
  19. certificatePassword: hc20240308
  20. nsis:
  21. artifactName: 档案脱机存档-安装包.${ext}
  22. shortcutName: ${productName}
  23. uninstallDisplayName: 卸载${productName}
  24. createDesktopShortcut: always
  25. mac:
  26. target:
  27. - dmg
  28. entitlementsInherit: build/entitlements.mac.plist
  29. extendInfo:
  30. - NSDocumentsFolderUsageDescription: 应用程序请求访问用户的Documents文件夹.
  31. - NSDownloadsFolderUsageDescription: 应用程序请求访问用户的下载文件夹.
  32. notarize: false
  33. dmg:
  34. sign: false
  35. artifactName: 档案脱机存档-安装包.${ext}
  36. appImage:
  37. artifactName: 档案脱机存档-安装包.${ext}
  38. electronDownload:
  39. mirror: https://npmmirror.com/mirrors/electron/
  40. fileAssociations:
  41. ext: hczc
  42. role: Editor
  43. icon: build/file.png