ed-safari/forge.config.js

56 lines
1.4 KiB
JavaScript
Raw Normal View History

2023-05-08 12:25:13 -07:00
module.exports = {
packagerConfig: {},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
2023-05-12 22:48:31 -07:00
config: {
certificateFile: './cert.pfx',
certificatePassword: process.env.CERTIFICATE_PASSWORD,
},
2023-05-08 12:25:13 -07:00
},
{
name: '@electron-forge/maker-zip',
2023-05-14 16:03:12 -07:00
platforms: ['darwin', 'win32'],
2023-05-08 12:25:13 -07:00
},
{
name: '@electron-forge/maker-deb',
config: {},
},
{
name: '@electron-forge/maker-rpm',
config: {},
},
],
plugins: [
{
name: '@electron-forge/plugin-vite',
config: {
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
// If you are familiar with Vite configuration, it will look really familiar.
build: [
{
// `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.
entry: 'src/main.js',
config: 'vite.main.config.mjs',
},
{
entry: 'src/preload.js',
config: 'vite.preload.config.mjs',
},
],
renderer: [
{
name: 'main_window',
config: 'vite.renderer.config.mjs',
},
2023-05-13 03:20:55 -07:00
{
name: 'settings_window',
config: 'vite.settings.config.mjs',
}
2023-05-08 12:25:13 -07:00
],
},
},
],
};