You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chris0203
changed the title
forge.config.js in packagerConfig.ignore seems got something wrong
packagerConfig.ignore in forge.config.js seems got something wrong
Dec 16, 2024
Pre-flight checklist
Electron Forge version
7.6.0
Electron version
30.0.1
Operating system
Win 10 22H2
Last known working Electron Forge version
No response
Expected behavior
ignore logic
should output
Actual behavior
Got some error or not functioning.
Steps to reproduce
I have the project file like this
What I want to package is only 3 folders, dist, dist-client, app and package.json, the final output like this:
so I try to ignore files
When running this got error.
Then I remove
if(!path) return false;
It no errors, but seems
package.json
has been ignored, so thePreparing native dependencies
is not running.✔ Checking your system ✔ Preparing to package application ✔ Running packaging hooks ✔ Running generateAssets hook ✔ Running prePackage hook ❯ Packaging application › Determining targets... ❯ Packaging for x64 on win32 ✔ Copying files ⠹ Preparing native dependencies ⠹ Finalizing package ◼ Running postPackage hook
but I try the other way, like this:
That the output is what I expected
Additional information
This issue is similar to #3293
The text was updated successfully, but these errors were encountered: