We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1901428 commit ba89a10Copy full SHA for ba89a10
tool/build.dart
@@ -27,11 +27,16 @@ Future<int> main() async {
27
final path = t['path']!;
28
stdout.writeln('\nCompiling $name from $path...');
29
30
+ // On Windows the executable should end with .exe. Use Platform to
31
+ // determine the correct output filename.
32
+ final exeSuffix = Platform.isWindows ? '.exe' : '';
33
+ final outputPath = 'out/$name$exeSuffix';
34
+
35
final result = await Process.run('dart', [
36
'compile',
37
'exe',
38
'-o',
- 'out/$name',
39
+ outputPath,
40
path,
41
], runInShell: true);
42
0 commit comments