Fix pubspec generation on windows (#1351)
Konstantin Ullrich committed
Mar 26, 2024 at 11:08 UTC
b9e803f3bd603a996e526cfd27db5d3c00f7b48f
1 file changed
+1
-1
tool/configure.dart
+1
-1
@@ -1037,7 +1037,7 @@ Future<void> generatePubspec(
1037
final inputFile = File(pubspecOutputPath);
1038
final inputText = await inputFile.readAsString();
1039
final inputLines = inputText.split('\n');
1040
- final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase() == 'dependencies:');
1040
+ final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase().contains('dependencies:'));
1041
var output = cwCore;
1042
1043
if (hasMonero) {