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
I'm seeing this behaviour (hang on "Finalizing package") with an afterPrune hook that literally does nothing; just an empty async function. With DEBUG=electron-packager, my build completes successfully in ~5 seconds.
If I modify the function to call the callback parameter, which the current electron-packager docs are kind of vague about the necessity of, then the build completes.
Electron Forge version: 7.5.0
Electron version: 32.0.1
OS: Windows 11 Enterprise 23H2
Pre-flight checklist
Electron Forge version
7.4.0
Electron version
v31.3.1
Operating system
macOS 14.6.1
Last known working Electron Forge version
No response
Expected behavior
afterPrune
should be executed when runningnpx electron-forge package --arch=arm64 --platform=linux ./electron
Actual behavior
the hook is only executed with
DEBUG=electron-packager npx electron-forge package --arch=arm64 --platform=linux ./electron
Steps to reproduce
I have a react app in the main folder project and electron files into
./electron
.This is the
forge.config.js
file:the error is not thrown unless you use
DEBUG=electron-packager
Additional information
$ npx electron-forge package --arch=arm64 --platform=linux ./electron ✔ Checking your system ✔ Preparing to package application ✔ Running packaging hooks ✔ Running generateAssets hook ✔ Running prePackage hook ❯ Packaging application › Determining targets... ❯ Packaging for arm64 on linux ✔ Copying files ✔ Preparing native dependencies [5s] ⠸ Finalizing package ◼ Running postPackage hook
The text was updated successfully, but these errors were encountered: