tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
BootstrapSettings.cs
Go to the documentation of this file.
1using System;
2using System.Reflection;
3
5
7{
11 sealed class BootstrapSettings
12 {
16 public const int FileMajorVersion = 1;
17
21 public const string VersionSubstitutionToken = "${version}";
22
26 public Version FileVersion { get; set; } = new Version(FileMajorVersion, 0, 0);
27
31 public Version TgsVersion { get; set; } = Assembly.GetEntryAssembly()!.GetName().Version!.Semver();
32
36 public string ServerUpdatePackageUrlFormatter { get; set; } = $"https://github.com/tgstation/tgstation-server/releases/download/tgstation-server-v{VersionSubstitutionToken}/ServerUpdatePackage.zip";
37 }
38}
Settings for the bootstrapper feature.
const int FileMajorVersion
The current supported major version of FileVersion.
Version TgsVersion
The Version of TGS last launched in the lib/Default directory.
string ServerUpdatePackageUrlFormatter
The URL to format with TgsVersion to get the download URL.
const string VersionSubstitutionToken
The token used to substitute ServerUpdatePackageUrlFormatter.
Version FileVersion
The version of the boostrapper file.