mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -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("Starting the Ombi.Updater process");
|
||||
var updaterExtension = string.Empty;
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
updaterExtension = ".exe";
|
||||
}
|
||||
// There must be an update
|
||||
var start = new ProcessStartInfo
|
||||
{
|
||||
UseShellExecute = false,
|
||||
CreateNoWindow = true,
|
||||
FileName = "Ombi.Updater",
|
||||
FileName = $"Ombi.Updater{updaterExtension}",
|
||||
Arguments = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + " " + extension,
|
||||
};
|
||||
using (var proc = new Process { StartInfo = start })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue