mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
fix build number calculation
This commit is contained in:
@@ -18,10 +18,10 @@ using System.Resources;
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information
|
||||
[assembly: AssemblyVersion("1.77.3.1827")]
|
||||
[assembly: AssemblyFileVersion("1.77.3.1827")]
|
||||
[assembly: AssemblyVersion("1.77.3.2591")]
|
||||
[assembly: AssemblyFileVersion("1.77.3.2591")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en-US")]
|
||||
[assembly: AssemblyInformationalVersion("1.77.3 (Nightly Build 1827)")]
|
||||
[assembly: AssemblyInformationalVersion("1.77.3 (Nightly Build 2591)")]
|
||||
|
||||
// Logging
|
||||
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")]
|
||||
|
||||
@@ -34,5 +34,17 @@ using System.Resources;
|
||||
int minor = 77;
|
||||
int revision = 3;
|
||||
string channel = "Nightly Build";
|
||||
int build = (int)(DateTime.UtcNow - new DateTime(2019, 9, 2)).TotalDays + DateTime.UtcNow.Hour + DateTime.UtcNow.Minute;
|
||||
DateTime lastReleaseDate = new DateTime(2019, 9, 2);
|
||||
DateTime CurrentDate = DateTime.UtcNow;
|
||||
TimeSpan elapsedTime;
|
||||
double TotalMinutes;
|
||||
int build;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
elapsedTime = CurrentDate.Subtract(lastReleaseDate);
|
||||
TotalMinutes = elapsedTime.TotalMinutes;
|
||||
build = (int)(TotalMinutes / 1000);
|
||||
base.Initialize();
|
||||
}
|
||||
#>
|
||||
Reference in New Issue
Block a user