Icon image is not setting properly
Hi guys
I am using:
- Electron Forge
35 - React
18 - Typescript
??
and for creating the AppImage, I am using reforged package but icon image is not setting.
const iconPath = path.resolve(__dirname, 'assets/icons/vite.svg');
console.log('Resolved icon path:', iconPath); // Debug line
module.exports = {
packagerConfig: {
asar: true,
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {},
},
// {
// name: '@electron-forge/maker-zip',
// platforms: ['darwin', 'linux'],
// },
{
name: '@reforged/maker-appimage', // or electron-forge-maker-appimage
config: {
options: {
categories: ['Network'], // Example category
icon: iconPath, // Example icon path
},
},
},
],
I tried both svg and png image.
Mod edit: grammar, formatting, readability.
Hi,
Please describe extensively these things:
- What are your expectations for the
iconfield to do? - What is going on exactly?
- Any more background what are you trying to achieve (tell about final results)?
@reforged/maker-appimageversion?
i tried both png and svg also I am trying to set the icon to the desktop build reforged/maker-appimage version 5.0.0
That still doesn't tell much, you still haven't answered the 1st question, and screens showing what's going on and what are your exceptations would be appreciated or, alternatively, any other kind of visualisation, especially given you're reporting an issue with more-or-less visual aspects of AppImages.
Also:
I am trying to set the icon to the desktop build
This is too vague, it doesn't really explain the places in which you expect the icon to show up or how it should work from your perspective.
I should tell, icon field is only for AppImages and doesn't set any icons related to windows you show up in your applications.
Similar issue here when I set icon path, it will just stop building the AppImage altogether, no warnings.
@jsumanpan29 If you could, please collect the verbose logs. In the meantime, I'll take a look on it myself and if I'll try to reproduce it. If I won't be able to reproduce it, so far I lack any info to even guess what's going on.
I can't really reproduce this myself, at least with PNG. Unless I won't find anything suspicious or get the logs showing what's going on, I won't approach fixing this issue.
It's been 2 months, as this issue still lacks any information what's really going on and I was unable to reproduce anything that suggests there's any bug related to icons, I'll just close this issue. Feel free to still share your thoughts or more info, that might lead to actually re-openning the issue.