add +pasture to version string
This commit is contained in:
parent
1991f2bf88
commit
54eadbe393
3 changed files with 5 additions and 4 deletions
|
@ -59,7 +59,6 @@ namespace BirdsiteLive.Controllers
|
|||
[Route("/nodeinfo/{id}.json")]
|
||||
public async Task<IActionResult> NodeInfo(string id)
|
||||
{
|
||||
var version = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3);
|
||||
var twitterUsersCount = await _twitterUserDal.GetTwitterUsersCountAsync();
|
||||
var isOpenRegistration = _moderationRepository.GetModerationType(ModerationEntityTypeEnum.Follower) != ModerationTypeEnum.WhiteListing;
|
||||
|
||||
|
@ -79,7 +78,7 @@ namespace BirdsiteLive.Controllers
|
|||
software = new Software()
|
||||
{
|
||||
name = "birdsitelive",
|
||||
version = version
|
||||
version = Program.VERSION
|
||||
},
|
||||
protocols = new[]
|
||||
{
|
||||
|
@ -114,7 +113,7 @@ namespace BirdsiteLive.Controllers
|
|||
software = new SoftwareV21()
|
||||
{
|
||||
name = "birdsitelive",
|
||||
version = version,
|
||||
version = Program.VERSION,
|
||||
repository = "https://github.com/NicolasConstant/BirdsiteLive"
|
||||
},
|
||||
protocols = new[]
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace BirdsiteLive
|
|||
{
|
||||
public class Program
|
||||
{
|
||||
public static string VERSION = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3) + "+pasture";
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
CreateHostBuilder(args).Build().Run();
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
<a href="https://git.gamers.exposed/pasture/BirdsiteLIVE">Source code</a> (AGPLv3) @*<a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>*@
|
||||
|
||||
<span style="float: right;">BirdsiteLIVE @System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(3)</span>
|
||||
<span style="float: right;">BirdsiteLIVE @Program.VERSION</span>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
|
|
Reference in a new issue