diff --git a/OpenNest/Forms/UpdaterStatus.cs b/OpenNest/Forms/UpdaterStatus.cs index c639d82d..c08d1be2 100644 --- a/OpenNest/Forms/UpdaterStatus.cs +++ b/OpenNest/Forms/UpdaterStatus.cs @@ -5,8 +5,8 @@ using System.Windows.Forms; namespace OpenNest.Forms { /// - /// Background update checks against the per-machine feed URL (Options dialog; blank - /// disables checks) and the status-bar item that announces a downloaded update. Never + /// Background update checks (GitHub Releases, or the per-machine feed URL from the + /// Options dialog) and the status-bar item that announces a downloaded update. Never /// restarts on its own: it restarts only when the user clicks the item and confirms. /// internal sealed class UpdaterStatus : IDisposable diff --git a/OpenNest/UpdaterService.cs b/OpenNest/UpdaterService.cs index 1f5a91fa..ae12e362 100644 --- a/OpenNest/UpdaterService.cs +++ b/OpenNest/UpdaterService.cs @@ -3,6 +3,7 @@ using System.Threading; using System.Threading.Tasks; using OpenNest.Properties; using Velopack; +using Velopack.Locators; using Velopack.Sources; namespace OpenNest @@ -38,6 +39,11 @@ namespace OpenNest public UpdaterService(string feedUrl, bool includeDevBuilds) { + // Only a process started through VelopackApp (MainApp) has a locator; + // test hosts and other embedders get no update checks. + if (!VelopackLocator.IsCurrentSet) + return; + IUpdateSource source = string.IsNullOrWhiteSpace(feedUrl) ? new GithubSource(GitHubRepositoryUrl, null, includeDevBuilds) : new SimpleWebSource(feedUrl);