Skip to content

Commit

Permalink
feat: icon ??
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Jun 22, 2024
1 parent 2cdd51f commit 307b46f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
Binary file added electron-app/ecoindex-app/assets/app-ico.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 20 additions & 14 deletions electron-app/ecoindex-app/forge.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
import { FuseV1Options, FuseVersion } from '@electron/fuses';
import { FuseV1Options, FuseVersion } from '@electron/fuses'

import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives';
import type { ForgeConfig } from '@electron-forge/shared-types';
import { FusesPlugin } from '@electron-forge/plugin-fuses';
import { MakerDeb } from '@electron-forge/maker-deb';
import { MakerRpm } from '@electron-forge/maker-rpm';
import { MakerSquirrel } from '@electron-forge/maker-squirrel';
import { MakerZIP } from '@electron-forge/maker-zip';
import { WebpackPlugin } from '@electron-forge/plugin-webpack';
import { mainConfig } from './webpack.main.config';
import { rendererConfig } from './webpack.renderer.config';
import { MakerDeb } from '@electron-forge/maker-deb'
import { MakerRpm } from '@electron-forge/maker-rpm'
import { MakerSquirrel } from '@electron-forge/maker-squirrel'
import { MakerZIP } from '@electron-forge/maker-zip'
import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives'
import { FusesPlugin } from '@electron-forge/plugin-fuses'
import { WebpackPlugin } from '@electron-forge/plugin-webpack'
import type { ForgeConfig } from '@electron-forge/shared-types'
import { mainConfig } from './webpack.main.config'
import { rendererConfig } from './webpack.renderer.config'

const config: ForgeConfig = {
packagerConfig: {
asar: true,
icon: '/assets/app-ico',
},
rebuildConfig: {},
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
makers: [
new MakerSquirrel({}),
new MakerZIP({}, ['darwin']),
new MakerRpm({}),
new MakerDeb({}),
],
plugins: [
new AutoUnpackNativesPlugin({}),
new WebpackPlugin({
Expand Down Expand Up @@ -49,6 +55,6 @@ const config: ForgeConfig = {
[FuseV1Options.OnlyLoadAppFromAsar]: true,
}),
],
};
}

export default config;
export default config
1 change: 1 addition & 0 deletions electron-app/ecoindex-app/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const _createWindow = (): void => {
const mainWindow = new BrowserWindow({
height: 600,
width: 800,
icon: '/assets/app-ico.png',
webPreferences: {
preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY,
},
Expand Down

0 comments on commit 307b46f

Please sign in to comment.