Commit 361893b1 authored by Devon Carew's avatar Devon Carew

fix the zip tool when building for ios

parent fbc61cb1
...@@ -91,17 +91,22 @@ class _ZipToolBuilder extends ZipBuilder { ...@@ -91,17 +91,22 @@ class _ZipToolBuilder extends ZipBuilder {
} }
} }
if (_getCompressedNames().isNotEmpty) {
runCheckedSync( runCheckedSync(
<String>['zip', '-q', outFile.absolute.path]..addAll(_getCompressedNames()), <String>['zip', '-q', outFile.absolute.path]..addAll(_getCompressedNames()),
workingDirectory: zipBuildDir.path, workingDirectory: zipBuildDir.path,
truncateCommand: true truncateCommand: true
); );
}
if (_getStoredNames().isNotEmpty) {
runCheckedSync( runCheckedSync(
<String>['zip', '-q', '-0', outFile.absolute.path]..addAll(_getStoredNames()), <String>['zip', '-q', '-0', outFile.absolute.path]..addAll(_getStoredNames()),
workingDirectory: zipBuildDir.path, workingDirectory: zipBuildDir.path,
truncateCommand: true truncateCommand: true
); );
} }
}
Iterable<String> _getCompressedNames() { Iterable<String> _getCompressedNames() {
return entries return entries
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment