Skip to content

Incorrect @electron/rebuild output build type #8529

Closed
@jacksman

Description

@jacksman
  • Electron-Builder Version: 25.0.1
  • Node Version: 20.17.0
  • Electron Version: 32.1.1
  • Electron Type (current, beta, nightly): current
  • Target: any

I believe this line might contain a typo. AFAIU It links the output module type with the debug log level setting.
(README ref:

electron-builder/README.md

Lines 202 to 204 in 2db6272

Set the `DEBUG` environment variable to debug what electron-builder is doing:
```bash
DEBUG=electron-builder
)

According to the @electron/rebuild API documentation, the debug parameter is intended to specify whether to generate a Debug or Release version of the module and not the log level (ref)

In the old legacy builder version (I was using electron-builder 24.6.4), this parameter was (and still is) ignored, always producing Release builds. This change is causing my current build flow to fail, as several modules expect to be rebuilt in Release mode. However, I still want to enable verbose logging in the electron-builder process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions