@distromate/electron-forge
v0.1.7
Published
Build Electron apps with Electron Forge and DistroMate
Maintainers
Readme
@distromate/electron-forge
Build Electron apps through distromate with Electron Forge as the host build tool.
Install
npm install -D @distromate/cli @distromate/electron-forge @electron-forge/cliNode.js 22+ is required.
Usage
Keep your normal forge.config.js, then point distromate.yaml at this builder plugin:
source:
type: adapter
plugin: electron-forge
options:
projectDir: .
publish:
appId: "70253487"
channel: stable
package:
publisher: Demo Inc.Run DistroMate directly:
distromate package -v 1.2.3
distromate publish -v 1.2.3Installing @distromate/electron-forge adds the dm-plugin-electron-forge command. distromate no longer installs plugins for you.
Behavior
- invokes Electron Forge's
package()API through@electron-forge/core - reuses Electron Forge's configured output directory (default
out/) - derives
source.rootandsource.executablefrom the packaged app - writes DistroMate package artifacts to the same Forge output directory unless
outputDiris overridden - returns prepared native source metadata plus inferred DistroMate defaults over JSON/stdio so
distromatecontinues the package or publish flow
Notes
- host-native only: the target platform and arch must match the current machine
- set
publish.appIdbefore callingdistromate publish - plugin-specific overrides go under
source.options
