1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Update version number generation slightly.

This commit is contained in:
Dean Herbert 2017-03-02 20:08:01 +09:00
parent 35c920d04b
commit d74a601180
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -74,7 +74,7 @@ namespace osu.Desktop.Deploy
refreshDirectory(StagingFolder); refreshDirectory(StagingFolder);
//increment build number until we have a unique one. //increment build number until we have a unique one.
string verBase = DateTime.Now.ToString("yyyy.Md."); string verBase = DateTime.Now.ToString("yyyy.Mdd.");
int increment = 0; int increment = 0;
while (Directory.GetFiles(ReleasesFolder, $"*{verBase}{increment}*").Any()) while (Directory.GetFiles(ReleasesFolder, $"*{verBase}{increment}*").Any())
increment++; increment++;