blob: 8b0d0adebcfb0b04aae3d09c228fdc6c41984801 [file] [log] [blame]
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
command -v cipd > /dev/null || {
echo "Please install CIPD (available from depot_tools) and add to path first.";
exit -1;
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
cipd ensure -ensure-file $DIR/ensure_file -root $DIR
pushd $DIR/..
if [[ -d "build" ]]; then
echo "Please remove the build directory before proceeding"
exit -1
mkdir -p build
tool/dart-sdk/bin/pub get
tool/dart-sdk/bin/dart2native bin/main.dart -o build/fuchsia_ctl
cp -f LICENSE build/