Release preparations
This commit is contained in:
+26
-1
@@ -19,7 +19,7 @@ allprojects{
|
||||
|
||||
ext{
|
||||
versionNumber = '4'
|
||||
versionModifier = 'beta'
|
||||
versionModifier = 'release'
|
||||
if(!project.hasProperty("versionType")) versionType = 'official'
|
||||
appName = 'Mindustry'
|
||||
gdxVersion = '1.9.10'
|
||||
@@ -57,11 +57,36 @@ allprojects{
|
||||
}
|
||||
}
|
||||
|
||||
generateDeployName = { String platform ->
|
||||
if(platform == "windows"){
|
||||
platform += "64"
|
||||
}
|
||||
platform = platform.capitalize()
|
||||
|
||||
if(platform.endsWith("64") || platform.endsWith("32")){
|
||||
platform = "${platform.substring(0, platform.length() - 2)}-${platform.substring(platform.length() - 2)}bit"
|
||||
}
|
||||
|
||||
return "[${platform}]${getModifierString()}[${getNeatVersionString()}]${appName}.zip"
|
||||
}
|
||||
|
||||
getVersionString = {
|
||||
String buildVersion = getBuildVersion()
|
||||
return "$versionNumber-$versionModifier-$buildVersion"
|
||||
}
|
||||
|
||||
getNeatVersionString = {
|
||||
String buildVersion = getBuildVersion()
|
||||
return "v$buildVersion"
|
||||
}
|
||||
|
||||
getModifierString = {
|
||||
if(versionModifier != "release"){
|
||||
return "[${versionModifier.toUpperCase()}]"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
getBuildVersion = {
|
||||
if(!project.hasProperty("buildversion")) return "custom build"
|
||||
return project.getProperties()["buildversion"]
|
||||
|
||||
Reference in New Issue
Block a user