@distromate/flutter
v0.1.7
Published
Build Flutter desktop apps with DistroMate packaging and publishing
Downloads
578
Maintainers
Readme
@distromate/flutter
Build Flutter desktop apps through distromate with Flutter as the host build tool.
Install
npm install -D @distromate/cli @distromate/flutterflutter must be available on your PATH, or in .fvm/flutter_sdk/bin/flutter.
Usage
Point distromate.yaml at the builder plugin and put Flutter-specific overrides in source.options:
source:
type: adapter
plugin: flutter
options:
projectDir: .
target: lib/main_prod.dart
flavor: prod
flutterArgs:
- --dart-define-from-file=.env.prod.json
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/flutter adds the dm-plugin-flutter command. distromate no longer installs plugins for you.
Behavior
- runs
flutter build windows|macos|linux - detects the built desktop artifact layout automatically
- derives
productName,package.name,package.shortDescription, version, icons, and native paths from Flutter metadata and build output - writes DistroMate package artifacts to the same native Flutter build 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: one platform per run, matching the current OS and architecture
- plugin-specific overrides go under
source.options - relative
icon,extraFiles,extraResources, signing paths,source.options.target, andsource.options.splitDebugInfovalues resolve from the config file location
