OLD | NEW |
| (Empty) |
1 #!/bin/bash | |
2 | |
3 set -e | |
4 | |
5 case $( uname -s ) in | |
6 Linux) | |
7 DART_SDK_ZIP=dartsdk-linux-x64-release.zip | |
8 DARTIUM_ZIP=dartium-linux-x64-release.zip | |
9 ;; | |
10 Darwin) | |
11 DART_SDK_ZIP=dartsdk-macos-x64-release.zip | |
12 DARTIUM_ZIP=dartium-macos-ia32-release.zip | |
13 ;; | |
14 esac | |
15 | |
16 CHANNEL=`echo $JOB | cut -f 2 -d -` | |
17 echo Fetch Dart channel: $CHANNEL | |
18 | |
19 echo http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest
/sdk/$DART_SDK_ZIP | |
20 curl http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest
/sdk/$DART_SDK_ZIP > $DART_SDK_ZIP | |
21 echo Fetched new dart version $(unzip -p $DART_SDK_ZIP dart-sdk/version) | |
22 rm -rf dart-sdk | |
23 unzip $DART_SDK_ZIP > /dev/null | |
24 rm $DART_SDK_ZIP | |
25 | |
26 echo http://storage.googleapis.com/dart-archive/channels/$CHANNEL/raw/latest/dar
tium/$DARTIUM_ZIP | |
27 curl http://storage.googleapis.com/dart-archive/channels/$CHANNEL/raw/latest/dar
tium/$DARTIUM_ZIP > $DARTIUM_ZIP | |
28 unzip $DARTIUM_ZIP > /dev/null | |
29 rm -rf dartium | |
30 rm $DARTIUM_ZIP | |
31 mv dartium-* dartium | |
32 | |
33 echo ===========================================================================
== | |
34 . ./scripts/env.sh | |
35 $DART --version | |
36 $PUB install | |
OLD | NEW |