Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

forge.config.ts 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import type { ForgeConfig } from '@electron-forge/shared-types';
  2. import { MakerSquirrel } from '@electron-forge/maker-squirrel';
  3. import { MakerZIP } from '@electron-forge/maker-zip';
  4. import { MakerDeb } from '@electron-forge/maker-deb';
  5. import { MakerRpm } from '@electron-forge/maker-rpm';
  6. import { WebpackPlugin } from '@electron-forge/plugin-webpack';
  7. import { mainConfig } from './webpack.main.config';
  8. import { rendererConfig } from './webpack.renderer.config';
  9. const config: ForgeConfig = {
  10. packagerConfig: {},
  11. rebuildConfig: {},
  12. makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
  13. plugins: [
  14. new WebpackPlugin({
  15. mainConfig,
  16. devContentSecurityPolicy: `default-src * 'unsafe-inline' 'unsafe-eval' file:`,
  17. renderer: {
  18. config: rendererConfig,
  19. entryPoints: [
  20. {
  21. html: './src/index.html',
  22. js: './src/renderer.ts',
  23. name: 'main_window',
  24. preload: {
  25. js: './src/preload.ts',
  26. },
  27. }
  28. ],
  29. },
  30. }),
  31. ],
  32. };
  33. export default config;