Skip to content

Commit

Permalink
feat: add custom app icon (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 authored Oct 28, 2024
1 parent d6f3037 commit 91fa4d8
Show file tree
Hide file tree
Showing 7 changed files with 564 additions and 3 deletions.
Binary file added assets/icon.icns
Binary file not shown.
Binary file added assets/icon.ico
Binary file not shown.
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/[email protected]
Binary file not shown.
29 changes: 26 additions & 3 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import fs from 'node:fs/promises'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { MakerDeb } from '@electron-forge/maker-deb'
import { MakerDMG } from '@electron-forge/maker-dmg'
import { MakerRpm } from '@electron-forge/maker-rpm'
import { MakerSquirrel } from '@electron-forge/maker-squirrel'
import { MakerZIP } from '@electron-forge/maker-zip'
Expand Down Expand Up @@ -177,17 +178,39 @@ if (ASAR_ENABLED) {
plugins.push(new AutoUnpackNativesPlugin({}))
}

/** @type {ForgeConfig} */
export default {
packagerConfig: {
asar: ASAR_ENABLED,
name: 'CoMapeo Desktop',
icon: './assets/icon',
},
rebuildConfig: {},
makers: [
new MakerSquirrel({}),
new MakerSquirrel({
setupIcon: './assets/icon.ico',
}),
new MakerDMG(
// @ts-expect-error Incorrect TS typings (https://github.com/electron/forge/issues/3712)
{
icon: './assets/icon.icns',
},
),
new MakerZIP({}, ['darwin']),
new MakerDeb({}, ['linux']),
new MakerRpm({}, ['linux']),
new MakerDeb(
{
options: {
icon: './assets/icon.png',
},
},
['linux'],
),
new MakerRpm(
{
options: { icon: './assets/icon.png' },
},
['linux'],
),
],
plugins,
}
Loading

0 comments on commit 91fa4d8

Please sign in to comment.