NfpmGenerator class

Generates a resolved nfpm.yaml and chglog changelog for a Dart package.

The generator reads the package's pubspec.yaml and a template nfpm.yaml, writes the pubspec-derived values into a copy of the template, appends the bundle tree, executable symlinks and license content entries, and writes the result together with the converted changelog into the output directory.

It does not build or run nfpm — a downstream pipeline job does that, which also resolves the remaining project-specific ${...} placeholders left in the template from its own environment.

Constructors

NfpmGenerator([ChangelogConverter _changelogConverter = const ChangelogConverter()])
Default constructor.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate({required Directory inputDirectory, required File templateFile, required Directory outputDirectory, required Directory bundleRoot}) Future<void>
Generates the nfpm configuration and changelog.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited