Skip to content

Commit

Permalink
fix forge config
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Aug 9, 2023
1 parent 5f93e0d commit b3574b7
Showing 1 changed file with 85 additions and 86 deletions.
171 changes: 85 additions & 86 deletions frontend/apps/electron/forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
darwinDarkModeSupport: 'true',
icon: iconsPath,
name: 'Mintter',

osxSign: {
entitlements: './entitlements.plist',
'entitlements-inherit': './entitlements.plist',
Expand All @@ -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,
},
],
},
},
],
}

0 comments on commit b3574b7

Please sign in to comment.