respira/forge.config.js
2025-12-08 00:21:31 +01:00

67 lines
1.6 KiB
JavaScript

module.exports = {
packagerConfig: {
asar: true,
executableName: 'respira',
icon: './public/icons/icon'
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
name: 'Respira',
setupIcon: './public/icons/icon.ico'
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin']
},
{
name: '@electron-forge/maker-dmg',
config: {
icon: './public/icons/icon.icns'
}
},
{
name: '@electron-forge/maker-deb',
config: {
icon: './public/icons/256x256.png'
},
},
{
name: '@electron-forge/maker-rpm',
config: {
icon: './public/icons/256x256.png'
},
},
],
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: 'electron/main.ts',
config: 'vite.config.electron.mts',
target: 'main',
},
{
entry: 'electron/preload.ts',
config: 'vite.config.electron.mts',
target: 'preload',
},
],
renderer: [
{
name: 'main_window',
config: 'vite.config.mts',
},
],
},
},
],
};