Browse Source

linux test

pull/240/head
JT 1 year ago
parent
commit
40134a43ef
  1. 11
      StabilityMatrix.Core/Models/Packages/KohyaSs.cs

11
StabilityMatrix.Core/Models/Packages/KohyaSs.cs

@ -124,6 +124,8 @@ public class KohyaSs : BaseGitPackage
venvRunner.WorkingDirectory = installLocation;
await venvRunner.Setup(true, onConsoleOutput).ConfigureAwait(false);
if (Compat.IsWindows)
{
var setupSmPath = Path.Combine(installLocation, "setup", "setup_sm.py");
var setupText = """
import setup_windows
@ -139,6 +141,15 @@ public class KohyaSs : BaseGitPackage
venvRunner.RunDetached("setup/setup_sm.py", onConsoleOutput);
await venvRunner.Process.WaitForExitAsync().ConfigureAwait(false);
}
else if (Compat.IsLinux)
{
venvRunner.RunDetached(
"setup/setup_linux.py --platform-requirements-file=requirements_linux.txt --no_run_accelerate",
onConsoleOutput
);
await venvRunner.Process.WaitForExitAsync().ConfigureAwait(false);
}
}
public override async Task RunPackage(
string installedPackagePath,

Loading…
Cancel
Save