forge icon indicating copy to clipboard operation
forge copied to clipboard

Adding extra resources includes the entire local repository

Open msimoni18 opened this issue 1 year ago • 7 comments

Pre-flight checklist

  • [X] I have read the contribution documentation for this project.
  • [X] I agree to follow the code of conduct that this project uses.
  • [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.4.1

Electron version

26.1.0

Operating system

macOS 12.6.5

Last known working Electron Forge version

No response

Expected behavior

When including the following code in forge.config.ts, I expected to only see a folder called resources in process.resourcesPath.

packagerConfig: {
    extraResource: ['./resources'],
  },

Actual behavior

Instead, there is also a folder called app that contains the entire local repository, making the final package almost 1GB. Without extraResource, the app folder does not show up in process.resourcesPath.

Steps to reproduce

Add a folder in a top level directory, add that folder as an extraResource, then run electron-forge make.

Additional information

No response

msimoni18 avatar Sep 01 '23 03:09 msimoni18