electron icons (#3613)
* Add back in app icons that got wiped from Tauri version of the app #3526 * linux * windows icon size * clean up
This commit is contained in:
BIN
assets/icon.icns
Normal file
BIN
assets/icon.icns
Normal file
Binary file not shown.
BIN
assets/icon.ico
Normal file
BIN
assets/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 183 KiB |
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
BIN
assets/icon@2x.icns
Normal file
BIN
assets/icon@2x.icns
Normal file
Binary file not shown.
@ -6,6 +6,9 @@ import { MakerRpm } from '@electron-forge/maker-rpm'
|
|||||||
import { VitePlugin } from '@electron-forge/plugin-vite'
|
import { VitePlugin } from '@electron-forge/plugin-vite'
|
||||||
import { FusesPlugin } from '@electron-forge/plugin-fuses'
|
import { FusesPlugin } from '@electron-forge/plugin-fuses'
|
||||||
import { FuseV1Options, FuseVersion } from '@electron/fuses'
|
import { FuseV1Options, FuseVersion } from '@electron/fuses'
|
||||||
|
import path from 'path'
|
||||||
|
|
||||||
|
const rootDir = process.cwd()
|
||||||
|
|
||||||
const config: ForgeConfig = {
|
const config: ForgeConfig = {
|
||||||
packagerConfig: {
|
packagerConfig: {
|
||||||
@ -19,13 +22,24 @@ const config: ForgeConfig = {
|
|||||||
}) ||
|
}) ||
|
||||||
undefined,
|
undefined,
|
||||||
executableName: 'zoo-modeling-app',
|
executableName: 'zoo-modeling-app',
|
||||||
|
icon: path.resolve(rootDir, 'assets', 'icon'),
|
||||||
},
|
},
|
||||||
rebuildConfig: {},
|
rebuildConfig: {},
|
||||||
makers: [
|
makers: [
|
||||||
new MakerSquirrel({}),
|
new MakerSquirrel({
|
||||||
|
setupIcon: path.resolve(rootDir, 'assets', 'icon.ico'),
|
||||||
|
}),
|
||||||
new MakerZIP({}, ['darwin']),
|
new MakerZIP({}, ['darwin']),
|
||||||
new MakerRpm({}),
|
new MakerRpm({
|
||||||
new MakerDeb({}),
|
options: {
|
||||||
|
icon: path.resolve(rootDir, 'assets', 'icon.png'),
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
new MakerDeb({
|
||||||
|
options: {
|
||||||
|
icon: path.resolve(rootDir, 'assets', 'icon.png'),
|
||||||
|
},
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
new VitePlugin({
|
new VitePlugin({
|
||||||
|
@ -34,6 +34,7 @@ const createWindow = () => {
|
|||||||
sandbox: false, // expose nodejs in preload
|
sandbox: false, // expose nodejs in preload
|
||||||
preload: path.join(__dirname, './preload.js'),
|
preload: path.join(__dirname, './preload.js'),
|
||||||
},
|
},
|
||||||
|
icon: path.resolve(process.cwd(), 'assets', 'icon.png'),
|
||||||
})
|
})
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
|
Reference in New Issue
Block a user