diff --git a/frontend/apps/electron/forge.config.js b/frontend/apps/electron/forge.config.js index d7b3d71f38..8603ceb93e 100644 --- a/frontend/apps/electron/forge.config.js +++ b/frontend/apps/electron/forge.config.js @@ -17,6 +17,7 @@ module.exports = { darwinDarkModeSupport: 'true', icon: iconsPath, name: 'Mintter', + osxSign: { entitlements: './entitlements.plist', 'entitlements-inherit': './entitlements.plist', @@ -33,95 +34,93 @@ module.exports = { // appleApiKey: process.env.APPLE_API_KEY, // appleApiKeyId: process.env.APPLE_API_KEY_ID, // appleApiIssuer: process.env.APPLE_API_ISSUER, - // }, - packageManager: 'yarn', - extraResource: [daemonBinaryPath], }, - rebuildConfig: {}, - makers: [ - { - name: '@electron-forge/maker-zip', - platforms: ['darwin'], - }, - { - name: '@electron-forge/maker-dmg', - config: { - // background: './assets/dmg-background.png', - format: 'ULFO', - debug: true, - overwrite: true, - icon: `${iconsPath}.icns`, - }, - }, - // { - // name: '@electron-forge/maker-deb', - // config: { - // options: { - // icon: `${iconsPath}.png`, - // }, - // }, - // }, - { - name: '@electron-forge/maker-squirrel', - config: { - // An URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). - iconUrl: `${iconsPath}.ico`, - name: 'Mintter', - // The ICO file to use as the icon for the generated Setup.exe - setupIcon: `${iconsPath}.ico`, - certificateFile: process.env.WINDOWS_PFX_FILE, - certificatePassword: process.env.WINDOWS_PFX_PASSWORD, - }, - }, - ], - plugins: [ - // { - // name: '@electron-forge/plugin-electronegativity', - // config: { - // isSarif: true, - // }, - // }, - // { - // name: '@electron-forge/plugin-auto-unpack-natives', - // config: {}, - // }, - { - 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.ts', - config: 'vite.main.config.ts', - }, - { - entry: 'src/preload.ts', - config: 'vite.preload.config.ts', - }, - ], - renderer: [ - { - name: 'main_window', - config: 'vite.renderer.config.ts', - }, - ], - }, + packageManager: 'yarn', + extraResource: [daemonBinaryPath], + }, + makers: [ + { + name: '@electron-forge/maker-zip', + platforms: ['darwin'], + }, + // { + // name: '@electron-forge/maker-dmg', + // config: { + // // background: './assets/dmg-background.png', + // format: 'ULFO', + // debug: true, + // overwrite: true, + // icon: `${iconsPath}.icns`, + // }, + // }, + // { + // name: '@electron-forge/maker-deb', + // config: { + // options: { + // icon: `${iconsPath}.png`, + // }, + // }, + // }, + { + name: '@electron-forge/maker-squirrel', + config: { + // An URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). + iconUrl: `${iconsPath}.ico`, + name: 'Mintter', + // The ICO file to use as the icon for the generated Setup.exe + setupIcon: `${iconsPath}.ico`, + certificateFile: process.env.WINDOWS_PFX_FILE, + certificatePassword: process.env.WINDOWS_PFX_PASSWORD, }, - ], - publishers: [ - { - name: '@electron-forge/publisher-github', - config: { - repository: { - owner: 'mintterteam', - name: 'mintter', + }, + ], + plugins: [ + // { + // name: '@electron-forge/plugin-electronegativity', + // config: { + // isSarif: true, + // }, + // }, + // { + // name: '@electron-forge/plugin-auto-unpack-natives', + // config: {}, + // }, + { + 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.ts', + config: 'vite.main.config.ts', + }, + { + entry: 'src/preload.ts', + config: 'vite.preload.config.ts', + }, + ], + renderer: [ + { + name: 'main_window', + config: 'vite.renderer.config.ts', }, - draft: true, - prerelease: true, + ], + }, + }, + ], + publishers: [ + { + name: '@electron-forge/publisher-github', + config: { + repository: { + owner: 'mintterteam', + name: 'mintter', }, + draft: true, + prerelease: true, }, - ], - }, + }, + ], }