Add the EngineInstallComplete event

This commit is contained in:
Jordan Dominion
2023-12-26 20:28:00 -05:00
parent bcdca8cea1
commit abcf062c10
2 changed files with 8 additions and 0 deletions
@@ -476,6 +476,8 @@ namespace Tgstation.Server.Host.Components.Engine
await InstallVersionFiles(progressReporter, version, customVersionStream, cancellationToken);
ourTcs.SetResult();
await eventConsumer.HandleEvent(EventType.EngineInstallComplete, new List<string> { versionString }, false, cancellationToken);
}
catch (Exception ex)
{
@@ -167,5 +167,11 @@
/// </summary>
[EventScript("DeploymentActivation")]
DeploymentActivation,
/// <summary>
/// Parameters: Version being installed.
/// </summary>
[EventScript("EngineInstallComplete")]
EngineInstallComplete,
}
}