Skip to content

Commit 8fe2835

Browse files
authored
Merge pull request #42 from rainyl/issue41
Fix extractArchiveToDisk
2 parents 18ecabd + f39d8c2 commit 8fe2835

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.2+1
2+
3+
- Fix: setup script will exit before files are really written to disk
4+
15
## 1.0.2
26

37
- API change: (Mat mean, Mat stdDev) meanStdDev(InputArray src, {OutputArray? mean, OutputArray? stdDev}) => (Scalar mean, Scalar stddev) meanStdDev(InputArray src, {InputArray? mask})

bin/setup_commands.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ abstract class BaseSetupCommand extends Command {
8282
exit(1);
8383
}
8484

85-
print("Extracting...");
8685
String extractPath = "";
8786
switch (os) {
8887
case OS.windows:
@@ -104,9 +103,10 @@ abstract class BaseSetupCommand extends Command {
104103
if (!Directory(extractPath).existsSync()) {
105104
Directory(extractPath).createSync(recursive: true);
106105
}
106+
print("Extracting to $extractPath");
107107
final tarBytes = GZipDecoder().decodeBytes(saveFile.readAsBytesSync());
108108
final archive = TarDecoder().decodeBytes(tarBytes);
109-
extractArchiveToDisk(archive, extractPath, bufferSize: 1024 * 1024 * 10); // 10MB
109+
await extractArchiveToDisk(archive, extractPath, bufferSize: 1024 * 1024 * 10); // 10MB
110110
}
111111

112112
@override

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: opencv_dart
22
description: "OpenCV4 bindings for Dart language and Flutter, using dart:ffi. The most complete OpenCV bindings for Dart!"
3-
version: 1.0.2
3+
version: 1.0.2+1
44
binary_version: 1.0.2
55
homepage: https://github.com/rainyl/opencv_dart
66

0 commit comments

Comments
 (0)