Fix templates treating official releases as dev releases

Correct version.py to act as a dev version

(cherry picked from commit f615cbb161)
This commit is contained in:
Spartan322
2024-10-31 17:53:59 -04:00
parent d32127a2a7
commit f6e4995e6f
2 changed files with 6 additions and 5 deletions

View File

@@ -66,10 +66,11 @@ static DownloadsAvailability _get_downloads_availability() {
// (which always have a number following their status, e.g. "alpha1").
// Therefore, don't display download-related features when using a development version
// (whose builds aren't numbered).
if (String(VERSION_STATUS) == String("dev") ||
String(VERSION_STATUS) == String("alpha") ||
String(VERSION_STATUS) == String("beta") ||
String(VERSION_STATUS) == String("rc")) {
if (VERSION_STATUS_VERSION <= 0 &&
(String(VERSION_STATUS) == String("dev") ||
String(VERSION_STATUS) == String("alpha") ||
String(VERSION_STATUS) == String("beta") ||
String(VERSION_STATUS) == String("rc"))) {
return DOWNLOADS_NOT_AVAILABLE_FOR_DEV_BUILDS;
}

View File

@@ -4,7 +4,7 @@ major = 4
minor = 4
patch = 0
status = "alpha"
status_version = 2
status_version = 0
module_config = ""
website = "https://redotengine.org"
docs = "latest"