mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 09:27:34 +08:00
Allow downgrading
Also better address UpdateManager conflict
This commit is contained in:
parent
6a03092944
commit
72cf6bb12c
@ -9,14 +9,15 @@ using osu.Game;
|
|||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
using osu.Game.Overlays.Notifications;
|
using osu.Game.Overlays.Notifications;
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osu.Game.Updater;
|
using Velopack;
|
||||||
using Velopack.Sources;
|
using Velopack.Sources;
|
||||||
|
using UpdateManager = Velopack.UpdateManager;
|
||||||
|
|
||||||
namespace osu.Desktop.Updater
|
namespace osu.Desktop.Updater
|
||||||
{
|
{
|
||||||
public partial class VeloUpdateManager : UpdateManager
|
public partial class VeloUpdateManager : Game.Updater.UpdateManager
|
||||||
{
|
{
|
||||||
private readonly Velopack.UpdateManager updateManager;
|
private readonly UpdateManager updateManager;
|
||||||
private INotificationOverlay notificationOverlay = null!;
|
private INotificationOverlay notificationOverlay = null!;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
@ -28,7 +29,10 @@ namespace osu.Desktop.Updater
|
|||||||
public VeloUpdateManager()
|
public VeloUpdateManager()
|
||||||
{
|
{
|
||||||
const string? github_token = null; // TODO: populate.
|
const string? github_token = null; // TODO: populate.
|
||||||
updateManager = new Velopack.UpdateManager(new GithubSource(@"https://github.com/ppy/osu", github_token, false));
|
updateManager = new UpdateManager(new GithubSource(@"https://github.com/ppy/osu", github_token, false), new UpdateOptions
|
||||||
|
{
|
||||||
|
AllowVersionDowngrade = true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
Loading…
Reference in New Issue
Block a user