Update update_dart_sdk.sh|ps1 and related to use bin/cache/engine.stamp|realm. (#164498)

Towards https://github.com/flutter/flutter/issues/164315.
This commit is contained in:
Matan Lurey
2025-03-03 12:58:16 -08:00
committed by GitHub
parent f86d556d1e
commit 50d4d53c05
3 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ SET stamp_path=%cache_dir%\flutter_tools.stamp
SET script_path=%flutter_tools_dir%\bin\flutter_tools.dart
SET dart_sdk_path=%cache_dir%\dart-sdk
SET engine_stamp=%cache_dir%\engine-dart-sdk.stamp
SET engine_version_path=%FLUTTER_ROOT%\bin\internal\engine.version
SET engine_version_path=%cache_dir%\engine.stamp
SET dart=%dart_sdk_path%\bin\dart.exe
REM Ensure that bin/cache exists.

View File

@@ -20,8 +20,8 @@ $cachePath = "$flutterRoot\bin\cache"
$dartSdkPath = "$cachePath\dart-sdk"
$dartSdkLicense = "$cachePath\LICENSE.dart_sdk_archive.md"
$engineStamp = "$cachePath\engine-dart-sdk.stamp"
$engineVersion = (Get-Content "$flutterRoot\bin\internal\engine.version")
$engineRealm = (Get-Content "$flutterRoot\bin\internal\engine.realm")
$engineVersion = (Get-Content "$flutterRoot\bin\cache\engine.stamp")
$engineRealm = (Get-Content "$flutterRoot\bin\cache\engine.realm")
$oldDartSdkPrefix = "dart-sdk.old"

View File

@@ -21,8 +21,8 @@ DART_SDK_PATH_OLD="$DART_SDK_PATH.old"
ENGINE_STAMP="$FLUTTER_ROOT/bin/cache/engine-dart-sdk.stamp"
OS="$(uname -s)"
ENGINE_VERSION=$(cat "$FLUTTER_ROOT/bin/internal/engine.version")
ENGINE_REALM=$(cat "$FLUTTER_ROOT/bin/internal/engine.realm" | tr -d '[:space:]')
ENGINE_VERSION=$(cat "$FLUTTER_ROOT/bin/cache/engine.stamp")
ENGINE_REALM=$(cat "$FLUTTER_ROOT/bin/cache/engine.realm" | tr -d '[:space:]')
if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; then
command -v curl > /dev/null 2>&1 || {