mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user