Config class
A class representing the configuration for building a Windows installer using Inno Setup.
Constructors
-
Config({required String? buildArgs, required String id, required String pubspecName, required String name, required String description, required String version, required String publisher, required String url, required String supportUrl, required String updatesUrl, required String installerIcon, required List<
Language> languages, required AdminMode admin, required String licenseFile, required SignTool? signTool, required BuildArch arch, BuildType type = BuildType.debug, bool app = true, bool installer = true}) -
Creates a Config instance with default values.
const
- Config.fromFile({BuildType type = BuildType.debug, bool app = true, bool installer = true, required String? buildArgs, required String? appVersion, required String? signToolName, required String? signToolCommand, required String? signToolParams})
-
Creates a Config instance directly from the
pubspec.yaml
file.factory -
Config.fromJson(Map<
String, dynamic> json, {BuildType type = BuildType.debug, bool app = true, bool installer = true, required String? buildArgs, required String? appVersion, required String? signToolName, required String? signToolCommand, required String? signToolParams}) -
Creates a Config instance from a JSON map, typically read from
pubspec.yaml
.factory
Properties
- admin → AdminMode
-
Whether the installer requires administrator privileges.
final
- app → bool
-
Whether to include the app in the installer.
final
- arch → BuildArch
-
CPU Architecture supported by the app and installer to run on.
final
- buildArgs → String?
-
Arguments to be passed to flutter build.
final
- description → String
-
A description of the app being packaged.
final
- exeName → String
-
The name of the executable file that will be created.
no setter
- exePubspecName → String
-
The name of the executable file that is created with flutter build.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier (UUID) for the app being packaged.
final
- installer → bool
-
Whether to create an installer file.
final
- installerIcon → String
-
The path to the installer icon file.
final
-
languages
→ List<
Language> -
The supported languages for the installer.
final
- licenseFile → String
-
The path to the text license file.
final
- name → String
-
The name of the app after packaging.
final
- publisher → String
-
The name of the publisher or maintainer.
final
- pubspecName → String
-
The global pubspec name attribute, same name of the exe generated from flutter build.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signTool → SignTool?
-
The name or commmand to be used to digitally sign the installer.
final
- supportUrl → String
-
The URL for support resources.
final
- type → BuildType
-
The build type (debug or release).
final
- updatesUrl → String
-
The URL for checking for updates.
final
- url → String
-
The app's homepage URL.
final
- version → String
-
The app's version.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEnvironmentVariables(
) → String - Returns a string containing the config attributes as environment variables.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited