feat: add startup update checker using HMBSbige.UpdateChecker#307
Merged
feat: add startup update checker using HMBSbige.UpdateChecker#307
Conversation
Copilot
AI
changed the title
[WIP] Add update checking feature on application launch
feat: add startup update checker using HMBSbige.UpdateChecker
Mar 1, 2026
Add automatic update checking functionality with the following features: - Check for updates on application startup with configurable interval - Manual update check button in settings - Support for pre-release versions - Proxy support for update checks - Localized UI for both English and Chinese - Display current and latest version information
60d4e72 to
6a557b7
Compare
- Use ReactiveUI WhenActivated pattern instead of Task.Run for startup update check - Add proper error handling with RxState.DefaultExceptionHandler - Improve SettingsView UI with bordered sections and better spacing - Optimize update check interval control layout - Add DEBUG notification for update check on startup
HMBSbige
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds automatic update checking on startup with configurable settings, using
HMBSbige.UpdateCheckerto query GitHub Releases.Contract & Service Layer
IUpdateAppServicein Application.Contracts withCheckForUpdateAsync(bool includePreRelease, CancellationToken)UpdateAppServiceimplementation usingGitHubReleasesUpdateCheckerandIHttpClientFactory(consistent withStunServerListAppService)vprefixConfiguration
AppConfigextended withAutoCheckUpdate(default: true),CheckUpdateInterval(default: 1h),IncludePreRelease(default: false),LastUpdateCheckTime(DateTimeOffset? for timezone correctness)IAppConfigManagerreactive pipelineViewModel
SettingsViewModel: new reactive properties,CheckUpdateCommand,CheckForUpdateOnStartupAsyncwith interval gatingMainWindowViewModel.InitializeAsync: fires startup check viaTask.Runto avoid blocking UIView
enandzh-HansWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
1.1.1.1REDACTED, pid is -1(packet block)/home/REDACTED/work/NatTypeTester/NatTypeTester/tests/UnitTest/bin/Debug/net10.0/UnitTest /home/REDACTED/work/NatTypeTester/NatTypeTester/tests/UnitTest/bin/Debug/net10.0/UnitTest @@ /tmp/tmpPVfC4W.tmp -collect-logs(packet block)av-build-tel-api-v1.avaloniaui.net/usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll(dns block)stun.hot-chilli.net/home/REDACTED/work/NatTypeTester/NatTypeTester/tests/UnitTest/bin/Debug/net10.0/UnitTest /home/REDACTED/work/NatTypeTester/NatTypeTester/tests/UnitTest/bin/Debug/net10.0/UnitTest @@ /tmp/tmpPVfC4W.tmp -collect-logs(dns block)www.nuget.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.