Fix pubspec generation on windows (#1351)

This commit is contained in:
Konstantin Ullrich
2024-03-26 18:08:39 +02:00
committed by GitHub
parent 6ae0f37b9c
commit b9e803f3bd
+1 -1
View File
@@ -1037,7 +1037,7 @@ Future<void> generatePubspec(
final inputFile = File(pubspecOutputPath);
final inputText = await inputFile.readAsString();
final inputLines = inputText.split('\n');
final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase() == 'dependencies:');
final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase().contains('dependencies:'));
var output = cwCore;
if (hasMonero) {