fix rsync output utf8decode bug (#95881)
This commit is contained in:
parent
046dde3db4
commit
7de1e225de
@ -190,6 +190,7 @@ class Context {
|
||||
runSync(
|
||||
'rsync',
|
||||
<String>[
|
||||
'-8', // Avoid mangling filenames with encodings that do not match the current locale.
|
||||
'-av',
|
||||
'--delete',
|
||||
'--filter',
|
||||
|
@ -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,
|
||||
);
|
||||
|
@ -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,
|
||||
|
@ -84,6 +84,7 @@ void main() {
|
||||
return FakeCommand(
|
||||
command: const <String>[
|
||||
'rsync',
|
||||
'-8',
|
||||
'-av',
|
||||
'--delete',
|
||||
'build/ios/Release-iphoneos/Runner.app',
|
||||
|
@ -586,6 +586,7 @@ void main() {
|
||||
),
|
||||
FakeCommand(command: <String>[
|
||||
'rsync',
|
||||
'-8',
|
||||
'-av',
|
||||
'--delete',
|
||||
tempDirectory.childDirectory('dirA').path,
|
||||
@ -593,6 +594,7 @@ void main() {
|
||||
]),
|
||||
FakeCommand(command: <String>[
|
||||
'rsync',
|
||||
'-8',
|
||||
'-av',
|
||||
'--delete',
|
||||
tempDirectory.childDirectory('dirB').path,
|
||||
|
@ -188,6 +188,7 @@ void main() {
|
||||
processManager.addCommand(const FakeCommand(command: kRunReleaseArgs));
|
||||
processManager.addCommand(const FakeCommand(command: <String>[
|
||||
'rsync',
|
||||
'-8',
|
||||
'-av',
|
||||
'--delete',
|
||||
'build/ios/Release-iphoneos/My Super Awesome App.app',
|
||||
|
Loading…
x
Reference in New Issue
Block a user