ensureInnoSetupDownloaded method
Downloads and installs Inno Setup.
If the file already exists, it will not be downloaded.
Returns the exit code of the command.
Implementation
Future<int> ensureInnoSetupDownloaded() async {
if (!File(innoSetupInstallerPath).existsSync()) {
final process = await Process.start(
'curl',
['-L', innoSetupUrl, '-o', innoSetupInstallerPath],
runInShell: true,
mode: verbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal,
);
return process.exitCode;
}
return 0;
}