mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 02:39:27 +00:00
7072d3b17e
* Use 64bit d8 on Windows & Mac. * Default to 64bit d8 on Linux. Change-Id: Ia03275e48ed0e30bcb2a7b390e7007e34e92cfc5 Reviewed-on: https://dart-review.googlesource.com/c/78640 Commit-Queue: Alexander Thomas <athom@google.com> Reviewed-by: Stephen Adams <sra@google.com> Reviewed-by: Jonas Termansen <sortie@google.com>
42 lines
911 B
Bash
Executable file
42 lines
911 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Uploads a new version of d8 CIPD package
|
|
set -e
|
|
set -x
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: update.sh version"
|
|
exit 1
|
|
fi
|
|
|
|
version=$1
|
|
major=$(echo "$version" | cut -d'.' -f1)
|
|
minor=$(echo "$version" | cut -d'.' -f2)
|
|
patch=$(echo "$version" | cut -d'.' -f3)
|
|
|
|
tmpdir=$(mktemp -d)
|
|
cleanup() {
|
|
rm -rf "$tmpdir"
|
|
}
|
|
trap cleanup EXIT HUP INT QUIT TERM PIPE
|
|
cd "$tmpdir"
|
|
|
|
arch=("linux64" "linux32" "linux64" "linux-arm32" "mac64" "win64")
|
|
path=("linux" "linux/ia32" "linux/x64" "linux/arm32" "macos" "windows")
|
|
|
|
for i in "${!arch[@]}"
|
|
do
|
|
filename="v8-${arch[$i]}-rel-$version.zip"
|
|
gsutil cp "gs://chromium-v8/official/$major.$minor/$filename" .
|
|
mkdir -p d8/${path[$i]}
|
|
unzip -q $filename -d d8/${path[$i]}
|
|
rm $filename
|
|
done
|
|
|
|
cipd create \
|
|
-name dart/d8 \
|
|
-in d8 \
|
|
-install-mode copy \
|
|
-tag version:$version \
|
|
-tag version:$major.$minor.$patch \
|
|
-tag version:$major.$minor
|