blob: 73e101164fc5721a944f79fafb6b8ca9d208987a [file] [log] [blame]
# Copyright 2019 The Chromium 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 -x #echo on
echo "Editing .gitignore to comment out build directory"
pushd packages/devtools_app
flutter pub get
cp third_party/packages/codicon/lib/font/codicon.ttf packages/devtools_app/fonts/codicon.ttf
perl -pi -e 's/packages\/codicon\/font\/codicon.ttf/fonts\/codicon.ttf/g' packages/devtools_app/pubspec.yaml
pushd packages/devtools
pub get
perl -pi -e "s/^build\/\$/\# build\//g" .gitignore
echo "Updating pubspecs to remove dependency overrides for development"
perl -pi -e 's/^.*#OVERRIDE_FOR_DEVELOPMENT.*//' packages/*/pubspec.yaml
set +x
echo "Ready to publish."
echo "Verify the package works, then follow the steps in tool/ to publish"