Removed some debug messages
This commit is contained in:
parent
235d787a6e
commit
87e197aebf
3 changed files with 6 additions and 13 deletions
|
@ -1873,11 +1873,11 @@ resharper_arrange_method_or_operator_body_highlighting = hint
|
||||||
resharper_arrange_null_checking_pattern_highlighting = suggestion
|
resharper_arrange_null_checking_pattern_highlighting = suggestion
|
||||||
resharper_enforce_do_while_statement_braces_highlighting = warning
|
resharper_enforce_do_while_statement_braces_highlighting = warning
|
||||||
resharper_enforce_fixed_statement_braces_highlighting = warning
|
resharper_enforce_fixed_statement_braces_highlighting = warning
|
||||||
resharper_enforce_foreach_statement_braces_highlighting = suggestion
|
resharper_enforce_foreach_statement_braces_highlighting = none
|
||||||
resharper_enforce_for_statement_braces_highlighting = suggestion
|
resharper_enforce_for_statement_braces_highlighting = none
|
||||||
resharper_enforce_if_statement_braces_highlighting = suggestion
|
resharper_enforce_if_statement_braces_highlighting = none
|
||||||
resharper_enforce_lock_statement_braces_highlighting = warning
|
resharper_enforce_lock_statement_braces_highlighting = warning
|
||||||
resharper_enforce_while_statement_braces_highlighting = suggestion
|
resharper_enforce_while_statement_braces_highlighting = none
|
||||||
resharper_remove_redundant_braces_highlighting = hint
|
resharper_remove_redundant_braces_highlighting = hint
|
||||||
resharper_suggest_discard_declaration_var_style_highlighting = warning
|
resharper_suggest_discard_declaration_var_style_highlighting = warning
|
||||||
resharper_prefer_concrete_value_over_default_highlighting = hint
|
resharper_prefer_concrete_value_over_default_highlighting = hint
|
|
@ -259,20 +259,14 @@ public partial class AppView : ReactiveWindow<AppViewModel>
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Console.WriteLine("Downloading new updater...");
|
|
||||||
await _appResolver.InstallOrUpdateAsync(AppContext.BaseDirectory);
|
await _appResolver.InstallOrUpdateAsync(AppContext.BaseDirectory);
|
||||||
|
_appResolver.LaunchNewVersion();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Console.WriteLine(ex);
|
Console.WriteLine(ex);
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
Console.WriteLine("Launching new updater...");
|
|
||||||
_appResolver.LaunchNewVersion();
|
|
||||||
}
|
|
||||||
|
|
||||||
Console.WriteLine("Finished update, closing down...");
|
|
||||||
base.Close();
|
base.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -147,13 +147,12 @@ public sealed class AppResolver : IAppResolver
|
||||||
|
|
||||||
// Move the new file to the application's directory.
|
// Move the new file to the application's directory.
|
||||||
// ...
|
// ...
|
||||||
// This is a workaround for really weird bug with applications published as single-file, where
|
// This is a workaround for really weird bug with Unix applications published as single-file:
|
||||||
// FileNotFoundException: Could not load file or assembly 'System.IO.Pipes, Version=9.0.0.0 [...]
|
// FileNotFoundException: Could not load file or assembly 'System.IO.Pipes, Version=9.0.0.0 [...]
|
||||||
if (Environment.OSVersion.Platform is not PlatformID.Unix)
|
if (Environment.OSVersion.Platform is not PlatformID.Unix)
|
||||||
File.Move(newFileUri, destinationUri, true);
|
File.Move(newFileUri, destinationUri, true);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Circumvent this issue on Unix systems: https://github.com/dotnet/runtime/issues/31149
|
|
||||||
using var moveProcess = ToastieUtilities.StartProcess("mv", [newFileUri, destinationUri]);
|
using var moveProcess = ToastieUtilities.StartProcess("mv", [newFileUri, destinationUri]);
|
||||||
await moveProcess.WaitForExitAsync(cToken);
|
await moveProcess.WaitForExitAsync(cToken);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue