mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Build all of the samples with wasm (#2584)
This commit is contained in:
@@ -3,7 +3,9 @@
|
|||||||
// found in the LICENSE file
|
// found in the LICENSE file
|
||||||
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:path/path.dart' as p;
|
import 'package:path/path.dart' as p;
|
||||||
|
|
||||||
import 'common.dart';
|
import 'common.dart';
|
||||||
import 'fix_base_tags.dart';
|
import 'fix_base_tags.dart';
|
||||||
|
|
||||||
@@ -53,7 +55,7 @@ void main() async {
|
|||||||
|
|
||||||
// Build the sample and copy the files
|
// Build the sample and copy the files
|
||||||
await _run(directory, 'flutter', ['pub', 'get']);
|
await _run(directory, 'flutter', ['pub', 'get']);
|
||||||
await _run(directory, 'flutter', ['build', 'web']);
|
await _run(directory, 'flutter', ['build', 'web', '--wasm']);
|
||||||
await _run(directory, 'mv', [sourceBuildDir, targetDirectory]);
|
await _run(directory, 'mv', [sourceBuildDir, targetDirectory]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user