Skip to content

Commit cbb9fc2

Browse files
committed
added run in shell
1 parent ade5805 commit cbb9fc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openapi-generator/lib/src/openapi_generator_runner.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
105105

106106
if (exitCode == 0) {
107107
var installOutput = await Process.run('flutter', ['pub', 'get'],
108+
runInShell: Platform.isWindows,
108109
workingDirectory: '$outputDirectory');
109110

110111
print(installOutput.stderr);
@@ -145,7 +146,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
145146
print('OpenapiGenerator :: running source code generations ::');
146147
var c = 'pub run build_runner build --delete-conflicting-outputs';
147148
var runnerOutput = await Process.run('flutter', c.split(' ').toList(),
148-
workingDirectory: '$outputDirectory');
149+
runInShell: Platform.isWindows, workingDirectory: '$outputDirectory');
149150
print(runnerOutput.stderr);
150151
return runnerOutput;
151152
}

0 commit comments

Comments
 (0)