forge.config.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. const path = require('path')
  2. module.exports = {
  3. packagerConfig: {
  4. icon: './icons/logseq_big_sur.icns',
  5. osxSign: {
  6. identity: 'Developer ID Application: Tiansheng Qin',
  7. 'hardened-runtime': true,
  8. entitlements: 'entitlements.plist',
  9. 'entitlements-inherit': 'entitlements.plist',
  10. 'signature-flags': 'library'
  11. },
  12. osxNotarize: {
  13. appleId: "my-fake-apple-id",
  14. appleIdPassword: "my-fake-apple-id-password",
  15. },
  16. },
  17. makers: [
  18. {
  19. 'name': '@electron-forge/maker-squirrel',
  20. 'config': {
  21. 'name': 'Logseq',
  22. 'setupIcon': './icons/logseq.ico'
  23. }
  24. },
  25. {
  26. name: '@electron-forge/maker-dmg',
  27. config: {
  28. format: 'ULFO',
  29. icon: './icons/logseq_big_sur.icns',
  30. name: 'Logseq'
  31. }
  32. },
  33. {
  34. name: '@electron-forge/maker-zip',
  35. platforms: ['darwin', 'linux']
  36. }
  37. ],
  38. publishers: [
  39. {
  40. name: '@electron-forge/publisher-github',
  41. config: {
  42. repository: {
  43. owner: 'logseq',
  44. name: 'logseq'
  45. },
  46. prerelease: true
  47. }
  48. }
  49. ]
  50. }