mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Merge pull request #2398 from devoncarew/fix_zip
fix the zip tool when building for ios
This commit is contained in:
commit
6ab1ff3511
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user