forge.config.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. const APPLE_API_KEY_ID = process.env.APPLE_API_KEY_ID;
  3. const APPLE_API_KEY_ISSUER_ID = process.env.APPLE_API_KEY_ISSUER_ID;
  4. */
  5. export default {
  6. outDir: 'dist',
  7. packagerConfig: {
  8. icon: "publish/icon",
  9. dir: [
  10. 'source'
  11. ],
  12. ignore: [
  13. "publish",
  14. "third_party",
  15. "test",
  16. "tools"
  17. ],
  18. /*
  19. osxNotarize: {
  20. tool: 'notarytool',
  21. appleApiKey: `~/.private_keys/AuthKey_${APPLE_API_KEY_ID}.p8`,
  22. appleApiKeyId: APPLE_API_KEY_ID,
  23. appleApiIssuer: APPLE_API_KEY_ISSUER_ID
  24. },
  25. */
  26. asar: true
  27. },
  28. /*
  29. makeTargets: {
  30. win32: ['nsis'],
  31. darwin: ['dmg', 'zip'],
  32. linux: ['snap'],
  33. },
  34. */
  35. makers: [
  36. {
  37. name: '@electron-forge/maker-zip',
  38. config: {
  39. platforms: [ 'darwin' ],
  40. // name: "${name}-${version}-mac.zip"
  41. }
  42. },
  43. {
  44. name: '@electron-forge/maker-dmg',
  45. config: {
  46. background: './publish/background.png',
  47. /* eslint-disable no-template-curly-in-string */
  48. name: "Netron-${version}"
  49. /* eslint-enable no-template-curly-in-string */
  50. }
  51. }
  52. ],
  53. publishers: [
  54. {
  55. "name": "@electron-forge/publisher-github",
  56. "config": {}
  57. },
  58. {
  59. "name": "@electron-forge/publisher-snapcraft",
  60. "config": {}
  61. }
  62. ]
  63. };