Check that the platform is linux before downloading linux-x64 binaries

This commit is contained in:
James Robinson 2015-09-25 17:42:28 -07:00
parent 2fe4484d9c
commit f7e20f4a46

View File

@ -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)) {