forked from firka/flutter
Start using bin/cache/engine.{stamp|realm} instead of bin/internal/engine.{realm|version}. (#164352)
Towards https://github.com/flutter/flutter/issues/164315. See also: https://github.com/flutter/flutter/blob/master/docs/tool/Engine-artifacts.md. There are more usages in `flutter/flutter`, but some will require more specialized review (i.e. from release folks, or the Dart SDK team), so I'll split those off. ~~Requires https://github.com/flutter/flutter/pull/164317 to merge first.~~ ✅
This commit is contained in:
@@ -1265,7 +1265,7 @@ class FlutterInformation {
|
||||
info['engineRevision'] = flutterVersion['engineRevision'] as String;
|
||||
final File engineRealm = flutterRoot
|
||||
.childDirectory('bin')
|
||||
.childDirectory('internal')
|
||||
.childDirectory('cache')
|
||||
.childFile('engine.realm');
|
||||
info['engineRealm'] = engineRealm.existsSync() ? engineRealm.readAsStringSync().trim() : '';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'dart:io';
|
||||
|
||||
void _validate(List<String> args) {
|
||||
bool errors = false;
|
||||
if (!File('bin/internal/engine.version').existsSync()) {
|
||||
if (!File('bin/cache/engine.stamp').existsSync()) {
|
||||
errors = true;
|
||||
print('This program must be run from the root of your flutter repository.');
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ void main() {
|
||||
.childDirectory('user')
|
||||
.childDirectory('flutter')
|
||||
.childDirectory('bin')
|
||||
.childDirectory('internal');
|
||||
.childDirectory('cache');
|
||||
flutterHome.childFile('engine.realm')
|
||||
..createSync(recursive: true)
|
||||
..writeAsStringSync('realm');
|
||||
|
||||
Reference in New Issue
Block a user