Check GitHub for a newer starter once a day, with a button to check now

The stable channel compares versions; the testing channel offers the staging
build of another commit. The channel switch is the starter's only, not the
simulator's.
This commit is contained in:
maj00r
2026-10-04 13:26:49 +02:00
parent a7a1e34239
commit 2b3c46938c
19 changed files with 777 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Reflection;
using StarterNG.Application.Abstractions;
using StarterNG.Domain.Settings;
using StarterNG.Infrastructure.Adapters;
@@ -52,6 +53,12 @@ public sealed class AppServices
Executables = new ExecutableLocator(files, paths, environment, log);
SettingsStore = new SettingsStore(files, clock, log, settingsPaths, new SettingsSerializer(), Executables);
MissingVehicleLog = new MissingVehicleLog(SettingsStore.Settings, MissingAssets, Library, log);
var assembly = typeof(AppServices).Assembly;
var version = assembly.GetName().Version ?? new Version(0, 0);
string? commit = UpdateCheck.CommitOf(
assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion);
Updates = new UpdateCheck(SettingsStore.Settings, new GitHubReleaseFeed(log, version), version, commit,
files, clock, log, settingsPaths.UpdateCheckPath());
StartSimulation = new StartSimulation(State, SettingsStore, files, Processes, Random, log);
}
@@ -124,6 +131,8 @@ public sealed class AppServices
public MissingVehicleLog MissingVehicleLog { get; }
public UpdateCheck Updates { get; }
public StartSimulation StartSimulation { get; }
public LocalizationService Localization { get; }