Skip to content

Commit

Permalink
Merge pull request #44 from TonyHoyle/windows_patch_fix
Browse files Browse the repository at this point in the history
Cope with changed runner code in new flutter fix

fyi, this fix will be available with 2.2.0 version
  • Loading branch information
onatcipli authored Aug 6, 2023
2 parents 7ae2a2e + 5cf7bf6 commit 62b46f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/file_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ class FileRepository {
contentLineByLine[i].replaceAllMapped(RegExp(r'CreateAndShow\(L"([^"]+")'), (match) { return 'CreateAndShow(L"$appName"'; });
break;
}
else if (contentLineByLine[i].contains('window.Create')) {
contentLineByLine[i] =
contentLineByLine[i].replaceAllMapped(RegExp(r'Create\(L"([^"]+")'), (match) { return 'Create(L"$appName"'; });
break;
}
}
await writeFile(
filePath: windowsAppPath,
Expand Down

0 comments on commit 62b46f3

Please sign in to comment.