pull/1514/head
Jamie.Rees 7 years ago
parent 03d88714de
commit dc3e429bbb

@ -169,12 +169,17 @@ namespace Ombi.Schedule.Jobs.Ombi
} }
Ctx.WriteLine("Finished Extracting files"); Ctx.WriteLine("Finished Extracting files");
Ctx.WriteLine("Starting the Ombi.Updater process"); Ctx.WriteLine("Starting the Ombi.Updater process");
var updaterExtension = string.Empty;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
updaterExtension = ".exe";
}
// There must be an update // There must be an update
var start = new ProcessStartInfo var start = new ProcessStartInfo
{ {
UseShellExecute = false, UseShellExecute = false,
CreateNoWindow = true, CreateNoWindow = true,
FileName = "Ombi.Updater", FileName = $"Ombi.Updater{updaterExtension}",
Arguments = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + " " + extension, Arguments = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + " " + extension,
}; };
using (var proc = new Process { StartInfo = start }) using (var proc = new Process { StartInfo = start })

Loading…
Cancel
Save