forge.config.js 1.3 KB

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