Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows issues of running flutterw #19

Open
vvvictor07 opened this issue Apr 10, 2024 · 0 comments
Open

Windows issues of running flutterw #19

vvvictor07 opened this issue Apr 10, 2024 · 0 comments

Comments

@vvvictor07
Copy link

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

vvvictor07 added a commit to vvvictor07/flutterw that referenced this issue Apr 10, 2024
…f `Process.start` for Windows

[Windows issues of running flutterw](hyiso#19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant