Skip to content

Commit

Permalink
Merge pull request #27 from FlutterFlow/wenkai/foldername-fix
Browse files Browse the repository at this point in the history
[Bugfix] still use / for path separator on windows
  • Loading branch information
wenkaifan0720 authored Oct 23, 2024
2 parents 0348f9c + a041d39 commit 5118dcb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.0.24

- Fix an issue on Windows
## 0.0.23

- Add more logging.
Expand Down
7 changes: 3 additions & 4 deletions lib/src/flutterflow_api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ Future<String?> exportCode({

extractArchiveTo(projectFolder, destinationPath, unzipToParentFolder);

var fileName = projectFolder.first.name;
folderName =
fileName.substring(0, fileName.indexOf(Platform.pathSeparator));

final postCodeGenerationFutures = <Future>[
if (fix)
_runFix(
Expand All @@ -131,6 +127,9 @@ Future<String?> exportCode({
if (postCodeGenerationFutures.isNotEmpty) {
await Future.wait(postCodeGenerationFutures);
}

var fileName = projectFolder.first.name;
folderName = fileName.substring(0, fileName.indexOf('/'));
} finally {
client.close();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 5118dcb

Please sign in to comment.