escaping paths with spaces, updated ellekit

This commit is contained in:
eevee
2025-03-30 14:54:36 +03:00
parent db63ef6ff2
commit 1c3b7ed4f2
4 changed files with 8 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ internal class IviMachOBinary(string fileName)
new ProcessStartInfo
{
FileName = "otool",
Arguments = $"-l {FullName}",
Arguments = $"-l \"{FullName}\"",
RedirectStandardOutput = true
}
);
@@ -58,7 +58,7 @@ internal class IviMachOBinary(string fileName)
new ProcessStartInfo
{
FileName = "lipo",
Arguments = $"-thin arm64 {FullName} -output {FullName}"
Arguments = $"-thin arm64 \"{FullName}\" -output \"{FullName}\""
}
);

View File

@@ -45,7 +45,7 @@ internal static class CodesigningMachOExtensions
new ProcessStartInfo
{
FileName = "codesign",
Arguments = $"--remove-signature {binary.FullName}"
Arguments = $"--remove-signature \"{binary.FullName}\""
}
);
@@ -59,7 +59,7 @@ internal static class CodesigningMachOExtensions
new ProcessStartInfo
{
FileName = "codesign",
Arguments = $"-d --entitlements {outputFilePath} --xml {binary.FullName}",
Arguments = $"-d --entitlements {outputFilePath} --xml \"{binary.FullName}\"",
RedirectStandardError = true
}
);

View File

@@ -13,7 +13,7 @@ internal static class DependencyExtensions
new ProcessStartInfo
{
FileName = "otool",
Arguments = $"-L {binary.FullName}",
Arguments = $"-L \"{binary.FullName}\"",
RedirectStandardOutput = true
}
);
@@ -35,7 +35,7 @@ internal static class DependencyExtensions
new ProcessStartInfo
{
FileName = "install_name_tool",
Arguments = $"-change {oldPath} {newPath} {binary.FullName}",
Arguments = $"-change {oldPath} {newPath} \"{binary.FullName}\"",
RedirectStandardError = true
}
);
@@ -52,7 +52,7 @@ internal static class DependencyExtensions
new ProcessStartInfo
{
FileName = "install_name_tool",
Arguments = $"-add_rpath {rPath} {binary.FullName}",
Arguments = $"-add_rpath {rPath} \"{binary.FullName}\"",
RedirectStandardOutput = true
}
);
@@ -70,7 +70,7 @@ internal static class DependencyExtensions
new ProcessStartInfo
{
FileName = "insert-dylib",
Arguments = $"{dependency} {binary.FullName} --all-yes --inplace",
Arguments = $"{dependency} \"{binary.FullName}\" --all-yes --inplace",
RedirectStandardOutput = true
}
);