[web] when building examples, delete the canvaskit bits from the output (#2586)

We use the hosted artifacts, so this just wastes storage
pull/2587/head
Kevin Moore 7 months ago committed by GitHub
parent 04aea26b6a
commit ac85e2c333
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,4 +1,5 @@
import 'dart:io'; import 'dart:io';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
Future<void> main() async { Future<void> main() async {
@ -47,6 +48,15 @@ Future<void> fixBaseTags() async {
); );
await index.writeAsString(newContents); 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);
}
} }
} }
} }

Loading…
Cancel
Save