#!/bin/bash | |
# Copyright 2020 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. | |
# Build flutter build dashboard. | |
pushd dashboard > /dev/null | |
set -e | |
rm -rf build | |
flutter channel master | |
flutter upgrade | |
flutter doctor | |
flutter pub get | |
flutter config --enable-web | |
flutter build web --web-renderer=canvaskit --release | |
rm -rf ../app_dart/build | |
cp -r build ../app_dart/build | |
flutter clean | |
popd > /dev/null |