diff --git a/StabilityMatrix/A3WebUI.cs b/StabilityMatrix/A3WebUI.cs index 4e9923b0..64b1017b 100644 --- a/StabilityMatrix/A3WebUI.cs +++ b/StabilityMatrix/A3WebUI.cs @@ -1,4 +1,6 @@ -namespace StabilityMatrix; +using StabilityMatrix.Models; + +namespace StabilityMatrix; public class A3WebUI: BasePackage { diff --git a/StabilityMatrix/Assets/Git-2.40.1-64-bit.exe b/StabilityMatrix/Assets/Git-2.40.1-64-bit.exe new file mode 100644 index 00000000..f5ac4d72 Binary files /dev/null and b/StabilityMatrix/Assets/Git-2.40.1-64-bit.exe differ diff --git a/StabilityMatrix/Helper/ProcessRunner.cs b/StabilityMatrix/Helper/ProcessRunner.cs new file mode 100644 index 00000000..5cfeb0ac --- /dev/null +++ b/StabilityMatrix/Helper/ProcessRunner.cs @@ -0,0 +1,39 @@ +using System; +using System.Diagnostics; +using System.IO; +using System.Threading.Tasks; + +namespace StabilityMatrix.Helper; + +public static class ProcessRunner +{ + public static async Task RunProcessAsync(string fileName, string arguments) + { + using var process = new Process(); + process.StartInfo.FileName = fileName; + process.StartInfo.Arguments = arguments; + process.StartInfo.UseShellExecute = false; + process.StartInfo.RedirectStandardOutput = true; + process.StartInfo.CreateNoWindow = true; + process.Start(); + + var output = await process.StandardOutput.ReadToEndAsync(); + await process.WaitForExitAsync(); + + return output; + } + + public static Process RunProcess(string fileName, string arguments) + + { + using var process = new Process(); + process.StartInfo.FileName = fileName; + process.StartInfo.Arguments = arguments; + process.StartInfo.UseShellExecute = false; + process.StartInfo.RedirectStandardOutput = true; + process.StartInfo.CreateNoWindow = true; + process.Start(); + + return process; + } +} diff --git a/StabilityMatrix/InstallPage.xaml b/StabilityMatrix/InstallPage.xaml index 040acb1b..31f7d3e8 100644 --- a/StabilityMatrix/InstallPage.xaml +++ b/StabilityMatrix/InstallPage.xaml @@ -6,12 +6,13 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:system="using:System" + xmlns:viewModels="using:StabilityMatrix.ViewModels" + xmlns:models="using:StabilityMatrix.Models" mc:Ignorable="d" - Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" - d:DataContext="{d:DesignInstance Type=local:InstallerViewModel}"> + Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> - + @@ -28,7 +29,7 @@ - + @@ -38,6 +39,11 @@ - + +