mirror of
https://github.com/flutter/flutter.git
synced 2026-02-14 14:50:22 +08:00
Check that the platform is linux before downloading linux-x64 binaries
This commit is contained in:
parent
2fe4484d9c
commit
f7e20f4a46
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user