startReleaseProcess method
Starts a Process using an executable
inside the current release path.
See Process.start.
Implementation
Future<Process?> startReleaseProcess(
String executable, List<String> arguments,
{String? workingDirectory,
Map<String, String>? environment,
ProcessStartMode mode = ProcessStartMode.normal}) async {
var executablePath = await currentReleaseFilePath(executable);
if (executablePath == null) return null;
workingDirectory ??= await currentReleasePath;
return Process.start(executablePath, arguments,
workingDirectory: workingDirectory,
environment: environment,
mode: mode);
}