Commit 5c9413d0 authored by James Robinson's avatar James Robinson

Merge pull request #49 from jamesr/cached_file_location

Make cached artifact location mirror local builds more closely
parents 36c03cb4 b7fc56eb
...@@ -52,7 +52,11 @@ class ArtifactStore { ...@@ -52,7 +52,11 @@ class ArtifactStore {
Future<Directory> _engineSpecificCacheDir() async { Future<Directory> _engineSpecificCacheDir() async {
Directory cacheDir = await _cacheDir(); 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()) { if (!await engineSpecificDir.exists()) {
await engineSpecificDir.create(recursive: true); await engineSpecificDir.create(recursive: true);
......
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