Commit f7e20f4a authored by James Robinson's avatar James Robinson

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

parent 2fe4484d
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment