Commit 272faba1 authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

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 ===
parent e38f92df
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`).
\ No newline at end of file
......@@ -29,7 +29,7 @@ if ((Test-Path $dartSdkStampPath) -and ($dartSdkVersion -eq (Get-Content $dartSd
Write-Host "Downloading Dart SDK $dartSdkVersion..."
$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"
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."* ]]
then
DART_CHANNEL="dev"
elif [[ $DART_SDK_VERSION == "hash/"* ]]
then
DART_CHANNEL="be"
fi
DART_SDK_URL="https://storage.googleapis.com/dart-archive/channels/$DART_CHANNEL/raw/$DART_SDK_VERSION/sdk/$DART_ZIP_NAME"
......
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