fix rsync output utf8decode bug (#95881)

This commit is contained in:
Spt
2022-01-14 02:20:20 +08:00
committed by GitHub
parent 046dde3db4
commit 7de1e225de
6 changed files with 8 additions and 1 deletions

View File

@@ -451,8 +451,9 @@ class _MacOSUtils extends _PosixUtils {
);
for (final FileSystemEntity unzippedFile in tempDirectory.listSync(followLinks: false)) {
// rsync --delete the unzipped files so files removed from the archive are also removed from the target.
// Add the '-8' parameter to avoid mangling filenames with encodings that do not match the current locale.
_processUtils.runSync(
<String>['rsync', '-av', '--delete', unzippedFile.path, targetDirectory.path],
<String>['rsync', '-8', '-av', '--delete', unzippedFile.path, targetDirectory.path],
throwOnError: true,
verboseExceptions: true,
);

View File

@@ -462,6 +462,7 @@ Future<XcodeBuildResult> buildXcodeProject({
await globals.processUtils.run(
<String>[
'rsync',
'-8', // Avoid mangling filenames with encodings that do not match the current locale.
'-av',
'--delete',
expectedOutputDirectory,