diff --git a/CHANGELOG.md b/CHANGELOG.md index 50b92fb..cb1a0a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.24 + +- Fix an issue on Windows ## 0.0.23 - Add more logging. diff --git a/lib/src/flutterflow_api_client.dart b/lib/src/flutterflow_api_client.dart index d4fa830..91e4a7d 100644 --- a/lib/src/flutterflow_api_client.dart +++ b/lib/src/flutterflow_api_client.dart @@ -108,10 +108,6 @@ Future exportCode({ extractArchiveTo(projectFolder, destinationPath, unzipToParentFolder); - var fileName = projectFolder.first.name; - folderName = - fileName.substring(0, fileName.indexOf(Platform.pathSeparator)); - final postCodeGenerationFutures = [ if (fix) _runFix( @@ -131,6 +127,9 @@ Future exportCode({ if (postCodeGenerationFutures.isNotEmpty) { await Future.wait(postCodeGenerationFutures); } + + var fileName = projectFolder.first.name; + folderName = fileName.substring(0, fileName.indexOf('/')); } finally { client.close(); } diff --git a/pubspec.yaml b/pubspec.yaml index 3d2474f..13f8d86 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flutterflow_cli description: >- Command-line client for FlutterFlow. Export code from FlutterFlow projects. -version: 0.0.23 +version: 0.0.24 homepage: https://github.com/FlutterFlow/flutterflow-cli issue_tracker: https://github.com/flutterflow/flutterflow-issues