Skip to content

Commit

Permalink
[web] when building examples, delete the canvaskit bits from the outp…
Browse files Browse the repository at this point in the history
…ut (#2586)

We use the hosted artifacts, so this just wastes storage
  • Loading branch information
kevmoo authored Feb 13, 2025
1 parent 04aea26 commit ac85e2c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/_tool/fix_base_tags.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:io';

import 'package:path/path.dart' as p;

Future<void> main() async {
Expand Down Expand Up @@ -47,6 +48,15 @@ Future<void> fixBaseTags() async {
);
await index.writeAsString(newContents);
}

// Since all of the web examples use the hosted canvaskit bits
// There is no need to deploy these
final canvasKitDirectory = Directory(
p.join(builtSample.path, 'canvaskit'),
);
if (canvasKitDirectory.existsSync()) {
canvasKitDirectory.deleteSync(recursive: true);
}
}
}
}

0 comments on commit ac85e2c

Please sign in to comment.