@@ -76,6 +76,10 @@ Future<String?> exportCode({
76
76
String ? commitHash,
77
77
bool exportAsDebug = false ,
78
78
}) async {
79
+ stderr.write ('Downloading code with the FlutterFlow CLI...\n ' );
80
+ stderr.write ('You are exporting project $projectId .\n ' );
81
+ stderr.write (
82
+ '${branchName != null ? 'Branch: $branchName ' : '' }${environmentName != null ? 'Environment: $environmentName ' : '' }${commitHash != null ? 'Commit: $commitHash ' : '' }\n ' );
79
83
if (exportAsDebug && exportAsModule) {
80
84
throw 'Cannot export as module and debug at the same time.' ;
81
85
}
@@ -106,7 +110,8 @@ Future<String?> exportCode({
106
110
extractArchiveToCurrentDirectory (projectFolder, destinationPath);
107
111
}
108
112
109
- folderName = projectFolder.first.name;
113
+ var fileName = projectFolder.first.name;
114
+ folderName = fileName.substring (0 , fileName.indexOf (Platform .pathSeparator));
110
115
111
116
final postCodeGenerationFutures = < Future > [
112
117
if (fix)
@@ -130,6 +135,7 @@ Future<String?> exportCode({
130
135
} finally {
131
136
client.close ();
132
137
}
138
+ stderr.write ('All done!\n ' );
133
139
return folderName;
134
140
}
135
141
@@ -261,6 +267,7 @@ Future _downloadAssets({
261
267
stderr.write ('Error downloading asset $path . This is probably fine.\n ' );
262
268
}
263
269
});
270
+ stderr.write ('Downloading assets...\n ' );
264
271
await Future .wait (futures);
265
272
}
266
273
@@ -279,7 +286,7 @@ Future _runFix({
279
286
final workingDirectory = unzipToParentFolder
280
287
? path_util.join (destinationPath, directory)
281
288
: destinationPath;
282
-
289
+ stderr. write ( 'Running flutter pub get... \n ' );
283
290
final pubGetResult = await Process .run (
284
291
'flutter' ,
285
292
['pub' , 'get' ],
@@ -293,6 +300,7 @@ Future _runFix({
293
300
'"flutter pub get" failed with code ${pubGetResult .exitCode }, stderr:\n ${pubGetResult .stderr }\n ' );
294
301
return ;
295
302
}
303
+ stderr.write ('Running dart fix...\n ' );
296
304
final fixDirectory = unzipToParentFolder ? directory : '' ;
297
305
final dartFixResult = await Process .run (
298
306
'dart' ,
@@ -364,7 +372,7 @@ Future firebaseDeploy({
364
372
);
365
373
}
366
374
367
- stdout .write ('Initializing firebase...\n ' );
375
+ stderr .write ('Initializing firebase...\n ' );
368
376
await Process .run (
369
377
'firebase' ,
370
378
['use' , firebaseProjectId],
0 commit comments