Skip to content

Commit

Permalink
Merge pull request #212 from hayashikun/fix/build-files-path
Browse files Browse the repository at this point in the history
fix bug when "runner" is included in the project path
  • Loading branch information
YehudaKremer authored Jul 14, 2023
2 parents a3d2b61 + d257aa8 commit 0ee9377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ class Configuration {

Future<String> _getBuildFilesFolder() async {
final String buildFilesFolderStart =
buildFilesFolder.substring(0, buildFilesFolder.indexOf('runner'));
buildFilesFolder.substring(0, buildFilesFolder.lastIndexOf('runner'));
final String buildFilesFolderArchitecture =
p.join(buildFilesFolderStart, architecture);
final String buildFilesFolderEnd =
buildFilesFolder.substring(buildFilesFolder.indexOf('runner'));
buildFilesFolder.substring(buildFilesFolder.lastIndexOf('runner'));

if (architecture == 'arm64' &&
!(await Directory(buildFilesFolderArchitecture).exists())) {
Expand Down

0 comments on commit 0ee9377

Please sign in to comment.