File tree 4 files changed +4
-30
lines changed
4 files changed +4
-30
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# This is dynamic in a monorepo
5
5
bin /internal /engine.version
6
- bin /internal /engine.realm
7
6
8
7
# Miscellaneous
9
8
* .class
Original file line number Diff line number Diff line change @@ -41,25 +41,11 @@ if ((Test-Path "$flutterRoot\DEPS" -PathType Leaf) -and (Test-Path "$flutterRoot
41
41
# The realm on CI is passed in.
42
42
if ($Env: FLUTTER_REALM ) {
43
43
[System.IO.File ]::WriteAllText(" $flutterRoot \bin\internal\engine.realm" , $Env: FLUTTER_REALM , $utf8NoBom )
44
- $engineRealm = " $Env: FLUTTER_REALM "
45
44
}
46
- else {
47
- if (Test-Path - Path " $flutterRoot \bin\internal\engine.realm" ) {
48
- $engineRealm = (Get-Content " $flutterRoot \bin\internal\engine.realm" )
49
- }
50
- }
51
- }
52
- else {
53
- # Release branch - these files will exist
54
- $engineVersion = (Get-Content " $flutterRoot \bin\internal\engine.version" )
55
- $engineRealm = (Get-Content " $flutterRoot \bin\internal\engine.realm" )
56
45
}
57
46
}
58
- else {
59
- # Non-fusion repository - these files will exist
60
- $engineVersion = (Get-Content " $flutterRoot \bin\internal\engine.version" )
61
- $engineRealm = (Get-Content " $flutterRoot \bin\internal\engine.realm" )
62
- }
47
+ $engineVersion = (Get-Content " $flutterRoot \bin\internal\engine.version" )
48
+ $engineRealm = (Get-Content " $flutterRoot \bin\internal\engine.realm" )
63
49
64
50
$oldDartSdkPrefix = " dart-sdk.old"
65
51
Original file line number Diff line number Diff line change @@ -39,22 +39,11 @@ if [ -f "$FLUTTER_ROOT/DEPS" ] && [ -f "$FLUTTER_ROOT/engine/src/.gn" ]; then
39
39
# The realm on CI is passed in.
40
40
if [ -n " ${FLUTTER_REALM} " ]; then
41
41
echo $FLUTTER_REALM > " $FLUTTER_ROOT /bin/internal/engine.realm"
42
- ENGINE_REALM=" $FLUTTER_REALM "
43
- else
44
- if [ -f " $FLUTTER_ROOT /bin/internal/engine.realm" ]; then
45
- ENGINE_REALM=$( cat " $FLUTTER_ROOT /bin/internal/engine.realm" | tr -d ' [:space:]' )
46
- fi
47
42
fi
48
- else
49
- # Release branch - these files will exist
50
- ENGINE_VERSION=$( cat " $FLUTTER_ROOT /bin/internal/engine.version" )
51
- ENGINE_REALM=$( cat " $FLUTTER_ROOT /bin/internal/engine.realm" | tr -d ' [:space:]' )
52
43
fi
53
- else
54
- # Non-fusion repository - these files will exist
55
- ENGINE_VERSION=$( cat " $FLUTTER_ROOT /bin/internal/engine.version" )
56
- ENGINE_REALM=$( cat " $FLUTTER_ROOT /bin/internal/engine.realm" | tr -d ' [:space:]' )
57
44
fi
45
+ ENGINE_VERSION=$( cat " $FLUTTER_ROOT /bin/internal/engine.version" )
46
+ ENGINE_REALM=$( cat " $FLUTTER_ROOT /bin/internal/engine.realm" | tr -d ' [:space:]' )
58
47
59
48
if [ ! -f " $ENGINE_STAMP " ] || [ " $ENGINE_VERSION " != ` cat " $ENGINE_STAMP " ` ]; then
60
49
command -v curl > /dev/null 2>&1 || {
You can’t perform that action at this time.
0 commit comments