mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Make cached artifact location mirror local builds more closely
This commit is contained in:
parent
3638f9380d
commit
b7fc56eb31
@ -52,7 +52,11 @@ class ArtifactStore {
|
||||
|
||||
Future<Directory> _engineSpecificCacheDir() async {
|
||||
Directory cacheDir = await _cacheDir();
|
||||
Directory engineSpecificDir = new Directory(path.join(cacheDir.path, 'sky_engine', engineRevision));
|
||||
// For now, all downloaded artifacts are release mode host binaries so use
|
||||
// a path that mirrors a local release build.
|
||||
// TODO(jamesr): Add support for more configurations.
|
||||
String config = 'Release';
|
||||
Directory engineSpecificDir = new Directory(path.join(cacheDir.path, 'sky_engine', engineRevision, config));
|
||||
|
||||
if (!await engineSpecificDir.exists()) {
|
||||
await engineSpecificDir.create(recursive: true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user