@distromate/electron-builder
v0.1.7
Published
Build Electron apps with electron-builder and DistroMate
Maintainers
Readme
@distromate/electron-builder
Build Electron apps through distromate with electron-builder as the host build tool.
Install
npm install -D @distromate/cli @distromate/electron-builder electron-builderNode.js 22+ is required.
Usage
Keep your existing electron-builder config, then point distromate.yaml at this builder plugin:
source:
type: adapter
plugin: electron-builder
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-builder adds the dm-plugin-electron-builder command. distromate no longer installs plugins for you.
Behavior
- loads the normal
electron-builderconfig sources (package.json#build,electron-builder.yml, JS/TS config files, and so on) - forces the active platform target to
dir - disables native
electron-builderpublishers for the build step - captures the unpacked app layout from
afterPack - 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
