From f7e20f4a4689c9fd203dc9dca9dcf91edb892bc3 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Fri, 25 Sep 2015 17:42:28 -0700 Subject: [PATCH] Check that the platform is linux before downloading linux-x64 binaries --- packages/flutter_tools/lib/src/artifacts.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter_tools/lib/src/artifacts.dart b/packages/flutter_tools/lib/src/artifacts.dart index 1b95c80d10a..85d51cfd47c 100644 --- a/packages/flutter_tools/lib/src/artifacts.dart +++ b/packages/flutter_tools/lib/src/artifacts.dart @@ -88,6 +88,8 @@ class ArtifactStore { File cachedFile = new File(path.join(cacheDir.path, name)); if (!await cachedFile.exists()) { _logging.info('Downloading ${name} from the cloud, one moment please...'); + if (!Platform.isLinux) + throw new Exception('Platform unsupported.'); String url = googleStorageUrl(category, 'linux-x64') + name; await _downloadFile(url, cachedFile); if (_needsToBeExecutable(artifact)) {