mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
parent
03d88714de
commit
dc3e429bbb
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue