respira/forge.config.js
Jan-Henrik Bruhn ca89658e80 Fix Linux packaging by specifying executable name
Add executableName to packagerConfig to ensure consistent binary naming
across platforms. Fixes DEB and RPM maker errors on Linux.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-07 22:54:17 +01:00

55 lines
1.3 KiB
JavaScript

module.exports = {
packagerConfig: {
asar: true,
executableName: 'skitch-controller',
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
name: 'respira_web',
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
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: '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',
},
],
},
},
],
};