ReForged icon indicating copy to clipboard operation
ReForged copied to clipboard

Icon image is not setting properly

Open prakashn91 opened this issue 7 months ago • 3 comments

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.

prakashn91 avatar Apr 25 '25 13:04 prakashn91

Hi,

Please describe extensively these things:

  1. What are your expectations for the icon field to do?
  2. What is going on exactly?
  3. Any more background what are you trying to achieve (tell about final results)?
  4. @reforged/maker-appimage version?

SpacingBat3 avatar Apr 25 '25 13:04 SpacingBat3

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

prakashn91 avatar Apr 28 '25 07:04 prakashn91

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.

SpacingBat3 avatar Apr 28 '25 08:04 SpacingBat3

Similar issue here when I set icon path, it will just stop building the AppImage altogether, no warnings.

Image

jsumanpan29 avatar May 15 '25 06:05 jsumanpan29

@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.

SpacingBat3 avatar May 15 '25 06:05 SpacingBat3

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.

SpacingBat3 avatar May 16 '25 20:05 SpacingBat3

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.

SpacingBat3 avatar Jun 15 '25 18:06 SpacingBat3