dvTerminalRunnerPathFor function
The terminal runner beside the GUI binary: the same name with -cli,
keeping a Windows .exe. What dartvel build <desktop>-cli produces.
Implementation
String dvTerminalRunnerPathFor(String executable) {
final RegExpMatch? exe = RegExp(r'\.exe$', caseSensitive: false).firstMatch(executable);
if (exe != null) return '${executable.substring(0, exe.start)}-cli${executable.substring(exe.start)}';
return '$executable-cli';
}