You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. const { FusesPlugin } = require('@electron-forge/plugin-fuses');
  2. const { FuseV1Options, FuseVersion } = require('@electron/fuses');
  3. module.exports = {
  4. packagerConfig: {
  5. asar: true,
  6. },
  7. rebuildConfig: {},
  8. makers: [
  9. {
  10. name: '@electron-forge/maker-squirrel',
  11. config: {},
  12. },
  13. {
  14. name: '@electron-forge/maker-zip',
  15. platforms: ['darwin'],
  16. },
  17. {
  18. name: '@electron-forge/maker-deb',
  19. config: {},
  20. },
  21. {
  22. name: '@electron-forge/maker-rpm',
  23. config: {},
  24. },
  25. ],
  26. plugins: [
  27. {
  28. name: '@electron-forge/plugin-auto-unpack-natives',
  29. config: {},
  30. },
  31. // Fuses are used to enable/disable various Electron functionality
  32. // at package time, before code signing the application
  33. new FusesPlugin({
  34. version: FuseVersion.V1,
  35. [FuseV1Options.RunAsNode]: false,
  36. [FuseV1Options.EnableCookieEncryption]: true,
  37. [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
  38. [FuseV1Options.EnableNodeCliInspectArguments]: false,
  39. [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
  40. [FuseV1Options.OnlyLoadAppFromAsar]: true,
  41. }),
  42. ],
  43. };