Skip to content

Commit f56d53b

Browse files
committed
Make zipDirectory call asynchronous
Added 'await' to the zipDirectory method to ensure the archive creation completes before proceeding. This change improves reliability when creating app archives.
1 parent 12b520c commit f56d53b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serious_python/bin/package_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class PackageCommand extends Command {
433433
stdout.writeln(
434434
"Creating app archive at ${dest.path} from a temp directory");
435435
final encoder = ZipFileEncoder();
436-
encoder.zipDirectory(tempDir, filename: dest.path);
436+
await encoder.zipDirectory(tempDir, filename: dest.path);
437437

438438
// create hash file
439439
stdout.writeln("Writing app archive hash to ${dest.path}.hash");

0 commit comments

Comments
 (0)