mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Support 'be' channel so you can download dart-sdk from the tip. (#10625)
* Support 'be' channel so you can download dart-sdk from the tip. This is triggered when you put 'hash/<build hash>' into dart-sdk.version file. For example, 'hash/c0617d20158955d99d6447036237fe2639ba088c' * Add README.md * Fix grammar, spacing, 80 chars, nicer ===
This commit is contained in:
parent
e38f92df9a
commit
272faba1c0
10
bin/internal/README.md
Normal file
10
bin/internal/README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Dart SDK dependency
|
||||||
|
===================
|
||||||
|
|
||||||
|
The Dart SDK is downloaded from one of [the supported channels](https://www.dartlang.org/install/archive),
|
||||||
|
cached in `bin/cache/dart-sdk` and is used to run Flutter Dart code.
|
||||||
|
|
||||||
|
The file `bin/internal/dart-sdk.version` determines the version of Dart SDK
|
||||||
|
that will be downloaded. Normally it points to the `dev` channel (for example,
|
||||||
|
`1.24.0-dev.6.7`), but it can also point to particular bleeding edge build
|
||||||
|
of Dart (for example, `hash/c0617d20158955d99d6447036237fe2639ba088c`).
|
@ -29,7 +29,7 @@ if ((Test-Path $dartSdkStampPath) -and ($dartSdkVersion -eq (Get-Content $dartSd
|
|||||||
|
|
||||||
Write-Host "Downloading Dart SDK $dartSdkVersion..."
|
Write-Host "Downloading Dart SDK $dartSdkVersion..."
|
||||||
$dartZipName = "dartsdk-windows-x64-release.zip"
|
$dartZipName = "dartsdk-windows-x64-release.zip"
|
||||||
$dartChannel = if ($dartSdkVersion.Contains("-dev.")) {"dev"} else {"stable"}
|
$dartChannel = if ($dartSdkVersion.Contains("-dev.")) {"dev"} else {if ($dartSdkVersion.Contains("hash/")) {"be"} else {"stable"}}
|
||||||
$dartSdkUrl = "https://storage.googleapis.com/dart-archive/channels/$dartChannel/raw/$dartSdkVersion/sdk/$dartZipName"
|
$dartSdkUrl = "https://storage.googleapis.com/dart-archive/channels/$dartChannel/raw/$dartSdkVersion/sdk/$dartZipName"
|
||||||
|
|
||||||
if (Test-Path $dartSdkPath) {
|
if (Test-Path $dartSdkPath) {
|
||||||
|
@ -41,6 +41,9 @@ if [ ! -f "$DART_SDK_STAMP_PATH" ] || [ "$DART_SDK_VERSION" != `cat "$DART_SDK_S
|
|||||||
if [[ $DART_SDK_VERSION == *"-dev."* ]]
|
if [[ $DART_SDK_VERSION == *"-dev."* ]]
|
||||||
then
|
then
|
||||||
DART_CHANNEL="dev"
|
DART_CHANNEL="dev"
|
||||||
|
elif [[ $DART_SDK_VERSION == "hash/"* ]]
|
||||||
|
then
|
||||||
|
DART_CHANNEL="be"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DART_SDK_URL="https://storage.googleapis.com/dart-archive/channels/$DART_CHANNEL/raw/$DART_SDK_VERSION/sdk/$DART_ZIP_NAME"
|
DART_SDK_URL="https://storage.googleapis.com/dart-archive/channels/$DART_CHANNEL/raw/$DART_SDK_VERSION/sdk/$DART_ZIP_NAME"
|
||||||
|
Loading…
Reference in New Issue
Block a user