79730079

Date: 2025-08-08 17:36:16
Score: 1
Natty:
Report link

Solution 1: Use extraResources instead of extraFiles

In your forge.config.js, try using extraResources instead of extraFiles:

module.exports = {
  packagerConfig: {
    asar: true,
  },
  makers: [
    // your makers config
  ],
  plugins: [
    [
      '@electron-forge/plugin-auto-unpack-natives',
      {
        // options if needed
      },
    ],
  ],
  packagerConfig: {
    extraResources: [
      {
        from: 'resources/myprogram.exe',
        to: 'resources/myprogram.exe',
      },
    ],
  },
};

Solution 2: Update your package.json configuration

Try this in your package.json:

"build": {
  "appId": "myapp",
  "extraResources": [
    {
      "from": "resources/myprogram.exe",
      "to": "resources"
    }
  ]
}

Solution 3: Check file paths and structure

Ensure that:

  1. Your resources folder is at the root of your project
  2. The path in the configuration matches exactly (case-sensitive on some systems)
  3. The file exists at the specified location before building

If none of these work, please provide:

  1. Your complete forge.config.js
  2. Your complete package.json build configuration
  3. Your project directory structure
Reasons:
  • Whitelisted phrase (-1): Try this
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Virul Nirmala Wickremesinghe