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,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
|
||||||
|
Loading…
Reference in New Issue
Block a user