Skip to content

Commit

Permalink
Add dart doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll committed Jul 25, 2023
1 parent 8455a95 commit 72b0437
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tool/build_e2e.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@

import 'dart:io';

const argDevToolsBuild = 'devtools-build';
const argUpdatePerfetto = '--update-perfetto';
const argNoUpdateFlutter = '--no-update-flutter';

// Add this flag if devtools_app does not need to be rebuilt.
const argNoBuildApp = '--no-build-app';
const argNoUpdateFlutter = '--no-update-flutter';
const argUpdatePerfetto = '--update-perfetto';

/// This script builds DevTools in release mode by running the
/// `./tool/build_release.sh` script and then serves DevTools with a locally
/// running DevTools server.
///
/// If [argNoBuildApp] is present, the DevTools web app will not be rebuilt.
///
/// If [argNoUpdateFlutter] is present, the Flutter SDK will not be updated to
/// the latest Flutter candidate. Use this flag to save the cost of updating the
/// Flutter SDK when you already have the proper SDK checked out.
///
/// If [argUpdatePerfetto] is present, the precompiled bits for Perfetto will
/// be updated from the [update_perfetto.sh] script as part of the DevTools
/// build process (e.g. [build_release.sh]).
void main(List<String> args) async {
final shouldUpdatePerfetto = args.contains(argUpdatePerfetto);
final noUpdateFlutter = args.contains(argNoUpdateFlutter);
Expand Down

0 comments on commit 72b0437

Please sign in to comment.