forge.config.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. }
  23. },
  24. {
  25. name: '@electron-forge/maker-dmg',
  26. config: {
  27. format: 'ULFO',
  28. icon: './icons/logseq_big_sur.icns',
  29. name: 'Logseq'
  30. }
  31. },
  32. {
  33. name: '@electron-forge/maker-zip',
  34. platforms: ['darwin', 'linux']
  35. },
  36. {
  37. name: 'electron-forge-maker-appimage',
  38. platforms: ['linux']
  39. }
  40. ],
  41. publishers: [
  42. {
  43. name: '@electron-forge/publisher-github',
  44. config: {
  45. repository: {
  46. owner: 'logseq',
  47. name: 'logseq'
  48. },
  49. prerelease: true
  50. }
  51. }
  52. ]
  53. }