mirror of
https://github.com/whoeevee/ivinject.git
synced 2026-01-08 23:25:03 +00:00
escaping paths with spaces, updated ellekit
This commit is contained in:
@@ -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}\""
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
);
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user