mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-16 23:38:48 +00:00
Added code to use SCETool for macOS
This commit is contained in:
parent
eed59004f0
commit
412ff21844
1 changed files with 12 additions and 3 deletions
|
@ -43,8 +43,17 @@ public class RemotePatch
|
||||||
platformExecutable = "scetool/win64/scetool.exe";
|
platformExecutable = "scetool/win64/scetool.exe";
|
||||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||||
platformExecutable = "scetool/linux64/scetool";
|
platformExecutable = "scetool/linux64/scetool";
|
||||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) platformExecutable = "";
|
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||||
|
{
|
||||||
|
if (RuntimeInformation.OSArchitecture == Architecture.Arm64)
|
||||||
|
{
|
||||||
|
platformExecutable = "scetool/macarm64/scetool"; // For Apple Silicon Macs
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
platformExecutable = "scetool/mac64/scetool";
|
||||||
|
}
|
||||||
|
}
|
||||||
if (platformExecutable != "")
|
if (platformExecutable != "")
|
||||||
{
|
{
|
||||||
ProcessStartInfo startInfo = new();
|
ProcessStartInfo startInfo = new();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue