[flutter_tool] Don't look for Fuchsia artifacts on Windows (#33146)

This commit is contained in:
Zachary Anderson 2019-05-21 16:12:27 -07:00 committed by GitHub
parent ecc7793c30
commit 2eee3f3283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,10 @@ class FuchsiaArtifacts {
/// FUCHSIA_SSH_CONFIG) to find the ssh configuration needed to talk to
/// a device.
factory FuchsiaArtifacts.find() {
if (!platform.isLinux && !platform.isMacOS) {
// Don't try to find the artifacts on platforms that are not supported.
return FuchsiaArtifacts();
}
final String fuchsia = Cache.instance.getArtifactDirectory('fuchsia').path;
final String tools = fs.path.join(fuchsia, 'tools');
final String dartPrebuilts = fs.path.join(tools, 'dart_prebuilts');