addFiles method
Adds a File entry to the Inno Setup script.
source
is required. destination
is optional and defaults to Inno.app.
flags
is optional.
Implementation
void addFiles({
required String source,
String? destination,
List<FileFlag>? flags,
}) {
final destDir = destination ?? Inno.app;
if (flags != null) {
_files.writeln(
'Source: "$source"; DestDir: "$destDir"; Flags: ${flags.join(' ')}');
} else {
_files.writeln('Source: "$source"; DestDir: "$destDir"');
}
}