Skip to content

Adding extra resources includes the entire local repository #3334

@msimoni18

Description

@msimoni18

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • 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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions