Skip to content

Packaging Application Spinner never goes away when building for multiple targets. #2998

Closed

Description

@macdja38

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.0.0-beta.68

Electron version

20.3.0

Operating system

macOS 12.6

Last known working Electron Forge version

No response

Expected behavior

Note there's a console.log I added in, more info in additional info:

If I run with one target
npm run package staging -- --arch=arm64
The process finishes and ends with an exit code.

✔ Preparing to Package Application for arch: arm64
✔ Preparing native dependencies
Assigning packaging progress spinner [HIDDEN] darwin arm64 [Function (anonymous)]
✔ Packaging Application

Process finished with exit code 0

Actual behavior

Note there's a console.log I added, more info in additional info:

When I run with two targets
npm run package staging -- --arch=arm64,x64
The process hangs with

✔ Preparing to Package Application for arch: x64,arm64
⠋ Preparing native dependencies✔ Preparing to Package Application for arch: x64,arm64
✔ Preparing native dependencies
Assigning packaging progress spinner [HIDDEN] 20.3.3 darwin x64 [Function (anonymous)]
✔ Preparing native dependencies
Assigning packaging progress spinner [HIDDEN] 20.3.3 darwin arm64 [Function (anonymous)]
✔ Packaging Application
⠇ Packaging Application

Steps to reproduce

npx create-electron-app@latest my-app
npm run package -- --arch=arm64,x64

Additional information

The console logs have one extra line

console.log("Assigning packaging progress spinner", buildPath, electronVersion, pPlatform, pArch, done);

Inserted here: https://github.com/electron-userland/electron-forge/blob/a8b9dfc5c19b6a0021d56ca8319a69903e457b04/packages/api/core/src/api/package.ts#L126

(the line above the packageSpinner assign)

My working theory is that packageSpinner is one variable, the afterCopyHooks are called twice, once with each architecture, so first time it's assigned, second time it's overwritten, then only the second one gets cleared.

I'm going to try and make a PR soon.

Activity

  1. added
    package
    on Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpackage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions