Fixed review comments
This commit is contained in:
parent
429aa603f5
commit
5c45802391
@ -24,7 +24,7 @@ namespace LibationAvalonia.Views
|
||||
upgrader.DownloadBegin += async (_, _) => await Dispatcher.UIThread.InvokeAsync(() => setProgressVisible(true));
|
||||
upgrader.DownloadCompleted += async (_, _) => await Dispatcher.UIThread.InvokeAsync(() => setProgressVisible(false));
|
||||
|
||||
Opened += async (_, _) => await upgrader.CheForUpgradeAsync(upgradeAvailable);
|
||||
Opened += async (_, _) => await upgrader.CheckForUpgradeAsync(upgradeAvailable);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ namespace LibationUiBase
|
||||
public event EventHandler<DownloadProgress> DownloadProgress;
|
||||
public event EventHandler<bool> DownloadCompleted;
|
||||
|
||||
public async Task CheForUpgradeAsync(Func<UpgradeEventArgs,Task> upgradeAvailableHandler)
|
||||
public async Task CheckForUpgradeAsync(Func<UpgradeEventArgs,Task> upgradeAvailableHandler)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@ -25,7 +25,7 @@ namespace LibationWinForms
|
||||
upgrader.DownloadBegin += (_, _) => Invoke(() => setProgressVisible(true));
|
||||
upgrader.DownloadCompleted += (_, _) => Invoke(() => setProgressVisible(false));
|
||||
|
||||
Shown += async (_, _) => await upgrader.CheForUpgradeAsync(upgradeAvailable);
|
||||
Shown += async (_, _) => await upgrader.CheckForUpgradeAsync(upgradeAvailable);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ using System.Diagnostics;
|
||||
using LibationFileManager;
|
||||
using System.IO;
|
||||
using System;
|
||||
using Dinah.Core;
|
||||
|
||||
namespace WindowsConfigApp
|
||||
{
|
||||
@ -42,7 +43,10 @@ namespace WindowsConfigApp
|
||||
|
||||
File.Copy("ZipExtractor.exe", zipExtractor, overwrite: true);
|
||||
|
||||
RunAsRoot(zipExtractor, $"--input \"{upgradeBundle}\" --output \"{thisDir}\" --executable \"{thisExe}\"");
|
||||
RunAsRoot(zipExtractor,
|
||||
$"--input {upgradeBundle.SurroundWithQuotes()} " +
|
||||
$"--output {thisDir.SurroundWithQuotes()} " +
|
||||
$"--executable {thisExe.SurroundWithQuotes()}");
|
||||
}
|
||||
|
||||
public Process RunAsRoot(string exe, string args)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user