Merge pull request #2398 from devoncarew/fix_zip

fix the zip tool when building for ios
This commit is contained in:
Devon Carew 2016-03-03 15:28:33 -08:00
commit 6ab1ff3511

View File

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