flutter/packages/flutter_tools/lib/src/windows
Chris Bracken d272a3ab80
Reland: [macos] add flavor options to tool commands (#119564)
* Reland: [macos] add flavor options to tool commands

Adds --flavor option to flutter run and flutter build. Running against
preexisting devicelab flavor tests for feature parity between macOS,
iOS, and Android.

This relands #118421 by alex-wallen which was reverted in #118858 due to
the following test failures:

The bail-out with "Host and target are the same. Nothing to install."
added in `packages/flutter_tools/lib/src/commands/install.dart`
triggered failures in the following tests, which unconditionally attempt
to install the built app, which is unsupported on desktop since the
host and target are the same:

* https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8791495589540422465/+/u/run_flutter_view_macos__start_up/test_stdout
* https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8791496218824259121/+/u/run_complex_layout_win_desktop__start_up/test_stdout
* https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8791496218165602641/+/u/run_flutter_gallery_win_desktop__start_up/test_stdout

Fixes #64088

* Partial revert: eliminate install check on desktop

The original flavour support patch included a check that triggered a
failure when flutter install is run on desktop OSes. This was
intentional, since the host and target devices are the same and
installation is unnecessary to launch the app on currently-supported
desktop OSes.

Note that Windows UWP apps *do* require installation to run, and we used
to have an install command for those apps, though UWP is no longer
supported.

Since that part of the change was orthogonal to flavour support itself,
I'm reverting that component of the change and we can deal with it
separately if so desired.
2023-01-31 17:37:46 +00:00
..
application_package.dart Add ability for PrebuiltWindowsApp to accept a zip archive. (#103918) 2022-05-17 11:27:11 -07:00
build_windows.dart Platform binaries reland (#115502) 2022-12-02 14:13:40 -08:00
visual_studio_validator.dart [tools]Build IPA validation UI Polish (#116744) 2022-12-15 14:43:32 -08:00
visual_studio.dart Ignore invalid description property in vswhere.exe JSON output (#106836) 2022-06-30 16:15:20 -07:00
windows_device.dart Reland: [macos] add flavor options to tool commands (#119564) 2023-01-31 17:37:46 +00:00
windows_version_validator.dart Refactoring to use ver command instead of systeminfo (#119304) 2023-01-30 19:29:13 +00:00
windows_workflow.dart Migrate some workflows and doctor validators to null safety (#79807) 2021-04-05 14:00:36 -07:00