mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
I think the auto updater is finished! #29
This commit is contained in:
parent
0601f04582
commit
aa2949cdd0
4 changed files with 56 additions and 6 deletions
|
@ -192,7 +192,11 @@ namespace PlexRequests.Updater
|
|||
|
||||
private void FinishUpdate()
|
||||
{
|
||||
var startInfo = new ProcessStartInfo("PlexRequests.exe") { Arguments = Error ? "-u 2" : "-u 1" };
|
||||
ProcessStartInfo startInfo;
|
||||
startInfo = Type.GetType("Mono.Runtime") != null
|
||||
? new ProcessStartInfo("mono PlexRequests.exe") { Arguments = Error ? "-u 2" : "-u 1" }
|
||||
: new ProcessStartInfo("PlexRequests.exe") { Arguments = Error ? "-u 2" : "-u 1" };
|
||||
|
||||
Process.Start(startInfo);
|
||||
|
||||
Environment.Exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue