dependabot[bot] on github_actions
GeertvanHorrik on develop
GitHubSync update Merge pull request #503 from Wi… (compare)
GeertvanHorrik on 20230130-110448
GeertvanHorrik on 20230130-110448
GitHubSync update (compare)
dependabot[bot] on github_actions
Bump dependabot/fetch-metadata … (compare)
github-actions[bot] on nuget
github-actions[bot] on develop
Bump Verify.NUnit from 19.7.1 t… Merge pull request #501 from Wi… (compare)
My app has recently stopped updating automatically. I've been debugging a lot to try to find the problem. After enabling file logging and running the released exe, I found this line:
16:09:07:784 => [INFO] [Orc.Squirrel.UpdateService] [1] Automatic updates are disabled
Which must come from this:
https://github.com/WildGums/Orc.Squirrel/blob/develop/src/Orc.Squirrel/Orc.Squirrel.Shared/Services/UpdateService.cs#L157
Now, the strange thing is that I've not changed anything in my code.. can it possibly be some change in the ConfigurationService that breaks the behaviour?
My code for calling HandleUpdatesAsync() is as follows:
var updateService = serviceLocator.ResolveType<IUpdateService>();
var updateChannel = new UpdateChannel("Stable", "https://...");
updateService.Initialize(new[] {updateChannel}, updateChannel, true);
updateService.HandleUpdatesAsync(DateTime.MaxValue);
I updated the following:
Catel.Fody from 2.14 to 2.16.2,
Fody from 1.29.4 to 2.0.2,
LoadAssembliesOnStartup.Fody from 1.7.0 to 1.8.1,
MethodTimer.Fody from 1.16.0 to 1.19.0,
ModuleInit.Fody from 1.5.9.0 to 1.6.0,
Mono.Cecil from 0.9.6.1 to 0.10.0-beta6
I do believe that my automatic updates stopped working before this though, but I am not 100% sure.
I do remember that my automatic updates broke from version 0.0.9 to 0.0.10, and at first I believed that it was a bug with squirrel.windows (not accepting number higher than 9). But I found that it stopped working when I tried updating from 0.1.0 to 0.1.1 as well.
Oh ok, so my best bet is something like this?
updateService.HandleUpdatesAsync();
if (updateService.IsUpdatedInstalled)
{
System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location, Environment.GetCommandLineArgs());
System.Windows.Application.Current.Shutdown();
}
I would also like a yes/no dialog to pop up with a message like "The application was just updated. Would you like to restart it now?", sorry for my newbish question but which way is easiest to do this?
if (await messageService.Show("Are you sure you want to do this?", "Are you sure?", MessageButton.YesNo) == MessageResult.Yes)
{
// Do it!
}
<configSections>
<sectionGroup name="catel">
<section name="logging" type="Catel.Logging.LoggingConfigurationSection, Catel.Core" />
</sectionGroup>
</configSections>
<catel>
<logging>
<listeners>
<!--TODO: the line below must be commented out in stable release-->
<!--<listener type="Catel.Logging.FileLogListener" IgnoreCatelLogging="true" IsDebugEnabled="true" IsInfoEnabled="true" IsWarningEnabled="true" IsErrorEnabled="true" />-->
</listeners>
</logging>
</catel>