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

fix the zip tool when building for ios

parent fbc61cb1
...@@ -91,16 +91,21 @@ class _ZipToolBuilder extends ZipBuilder { ...@@ -91,16 +91,21 @@ class _ZipToolBuilder extends ZipBuilder {
} }
} }
runCheckedSync( if (_getCompressedNames().isNotEmpty) {
<String>['zip', '-q', outFile.absolute.path]..addAll(_getCompressedNames()), runCheckedSync(
workingDirectory: zipBuildDir.path, <String>['zip', '-q', outFile.absolute.path]..addAll(_getCompressedNames()),
truncateCommand: true workingDirectory: zipBuildDir.path,
); truncateCommand: true
runCheckedSync( );
<String>['zip', '-q', '-0', outFile.absolute.path]..addAll(_getStoredNames()), }
workingDirectory: zipBuildDir.path,
truncateCommand: true if (_getStoredNames().isNotEmpty) {
); runCheckedSync(
<String>['zip', '-q', '-0', outFile.absolute.path]..addAll(_getStoredNames()),
workingDirectory: zipBuildDir.path,
truncateCommand: true
);
}
} }
Iterable<String> _getCompressedNames() { Iterable<String> _getCompressedNames() {
......
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