I have faced impediment that in Windows I need to provide full path to flutter executable because PATH value is ignored due to the documentation
Using an absolute path for executable is recommended since resolving the executable path is platform-specific. On Windows, both any PATH set in the environment map parameter and the path set in working Directory parameter are ignored for the purposes of resolving the executable path.
And the main problem location of flutter is totally dynamic and machine dependant.
|
final process = await Process.start( |
As for me quist fix was to run command in Shell:
final process = await Process.start(
cmds.removeAt(0),
cmds,
runInShell: true,
mode: isVerbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal,
);
In dart:io there is property isWindows, we can explicitly apply runInShell flag for Windows OS.
P.S.: I seems command should be runned with mode ProcessStartMode.inheritStdio in such case
I have faced impediment that in Windows I need to provide full path to
flutterexecutable becausePATHvalue is ignored due to the documentationAnd the main problem location of flutter is totally dynamic and machine dependant.
flutterw/packages/flutterw/lib/src/shell.dart
Line 40 in dfe70bf
As for me quist fix was to run command in Shell:
In
dart:iothere is property isWindows, we can explicitly applyrunInShellflag for Windows OS.P.S.: I seems command should be runned with mode
ProcessStartMode.inheritStdioin such case