Skip to content

Commit 5118dcb

Browse files
Merge pull request #27 from FlutterFlow/wenkai/foldername-fix
[Bugfix] still use / for path separator on windows
2 parents 0348f9c + a041d39 commit 5118dcb

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.0.24
2+
3+
- Fix an issue on Windows
14
## 0.0.23
25

36
- Add more logging.

lib/src/flutterflow_api_client.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ Future<String?> exportCode({
108108

109109
extractArchiveTo(projectFolder, destinationPath, unzipToParentFolder);
110110

111-
var fileName = projectFolder.first.name;
112-
folderName =
113-
fileName.substring(0, fileName.indexOf(Platform.pathSeparator));
114-
115111
final postCodeGenerationFutures = <Future>[
116112
if (fix)
117113
_runFix(
@@ -131,6 +127,9 @@ Future<String?> exportCode({
131127
if (postCodeGenerationFutures.isNotEmpty) {
132128
await Future.wait(postCodeGenerationFutures);
133129
}
130+
131+
var fileName = projectFolder.first.name;
132+
folderName = fileName.substring(0, fileName.indexOf('/'));
134133
} finally {
135134
client.close();
136135
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutterflow_cli
22
description: >-
33
Command-line client for FlutterFlow. Export code from FlutterFlow projects.
4-
version: 0.0.23
4+
version: 0.0.24
55
homepage: https://github.com/FlutterFlow/flutterflow-cli
66
issue_tracker: https://github.com/flutterflow/flutterflow-issues
77

0 commit comments

Comments
 (0)