Release preparations
This commit is contained in:
@@ -46,7 +46,7 @@ task deploy(type: Copy){
|
|||||||
|
|
||||||
from "build/outputs/apk/release/android-release.apk"
|
from "build/outputs/apk/release/android-release.apk"
|
||||||
into "../deploy/"
|
into "../deploy/"
|
||||||
rename("android-release.apk", appName + "-android-" + getVersionString() + ".apk")
|
rename("android-release.apk", "${generateDeployName('android')}.apk")
|
||||||
}
|
}
|
||||||
|
|
||||||
android{
|
android{
|
||||||
|
|||||||
+26
-1
@@ -19,7 +19,7 @@ allprojects{
|
|||||||
|
|
||||||
ext{
|
ext{
|
||||||
versionNumber = '4'
|
versionNumber = '4'
|
||||||
versionModifier = 'beta'
|
versionModifier = 'release'
|
||||||
if(!project.hasProperty("versionType")) versionType = 'official'
|
if(!project.hasProperty("versionType")) versionType = 'official'
|
||||||
appName = 'Mindustry'
|
appName = 'Mindustry'
|
||||||
gdxVersion = '1.9.10'
|
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 = {
|
getVersionString = {
|
||||||
String buildVersion = getBuildVersion()
|
String buildVersion = getBuildVersion()
|
||||||
return "$versionNumber-$versionModifier-$buildVersion"
|
return "$versionNumber-$versionModifier-$buildVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getNeatVersionString = {
|
||||||
|
String buildVersion = getBuildVersion()
|
||||||
|
return "v$buildVersion"
|
||||||
|
}
|
||||||
|
|
||||||
|
getModifierString = {
|
||||||
|
if(versionModifier != "release"){
|
||||||
|
return "[${versionModifier.toUpperCase()}]"
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
getBuildVersion = {
|
getBuildVersion = {
|
||||||
if(!project.hasProperty("buildversion")) return "custom build"
|
if(!project.hasProperty("buildversion")) return "custom build"
|
||||||
return project.getProperties()["buildversion"]
|
return project.getProperties()["buildversion"]
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ newgame = New Game
|
|||||||
none = <none>
|
none = <none>
|
||||||
minimap = Minimap
|
minimap = Minimap
|
||||||
close = Close
|
close = Close
|
||||||
|
website = Website
|
||||||
quit = Quit
|
quit = Quit
|
||||||
maps = Maps
|
maps = Maps
|
||||||
continue = Continue
|
continue = Continue
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ newgame = Новая игра
|
|||||||
none = <ничего>
|
none = <ничего>
|
||||||
minimap = Мини-карта
|
minimap = Мини-карта
|
||||||
close = Закрыть
|
close = Закрыть
|
||||||
|
website = Веб-сайт
|
||||||
quit = Выход
|
quit = Выход
|
||||||
maps = Карты
|
maps = Карты
|
||||||
continue = Продолжить
|
continue = Продолжить
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ public class MenuFragment extends Fragment{
|
|||||||
join = new MobileButton("icon-add", isize, "$joingame", ui.join::show),
|
join = new MobileButton("icon-add", isize, "$joingame", ui.join::show),
|
||||||
editor = new MobileButton("icon-editor", isize, "$editor", ui.maps::show),
|
editor = new MobileButton("icon-editor", isize, "$editor", ui.maps::show),
|
||||||
tools = new MobileButton("icon-tools", isize, "$settings", ui.settings::show),
|
tools = new MobileButton("icon-tools", isize, "$settings", ui.settings::show),
|
||||||
donate = new MobileButton("icon-donate", isize, "$donate", () -> Core.net.openURI(donationURL)),
|
donate = new MobileButton("icon-link", isize, "$website", () -> Core.net.openURI("https://anuke.itch.io/mindustry")),
|
||||||
exit = new MobileButton("icon-exit", isize, "$quit", () -> Core.app.exit());
|
exit = new MobileButton("icon-exit", isize, "$quit", () -> Core.app.exit());
|
||||||
|
|
||||||
if(!Core.graphics.isPortrait()){
|
if(!Core.graphics.isPortrait()){
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ task ikZip(type: Zip){
|
|||||||
def filename = "$appName-${getTarget()}-${version}"
|
def filename = "$appName-${getTarget()}-${version}"
|
||||||
|
|
||||||
from "build/libs/$filename"
|
from "build/libs/$filename"
|
||||||
archiveName = "$appName-${getTarget()}-${getVersionString()}.zip"
|
archiveName = "${generateDeployName(getTarget())}.zip"
|
||||||
}
|
}
|
||||||
|
|
||||||
task ikdist{
|
task ikdist{
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ task packrZip(){
|
|||||||
|
|
||||||
task rzip(type: Zip){
|
task rzip(type: Zip){
|
||||||
from "packr-out/"
|
from "packr-out/"
|
||||||
archiveName "$appName-${getPlatform()}-${getVersionString()}.zip"
|
archiveName "${generateDeployName(getPlatform().toString())}.zip"
|
||||||
destinationDir(file("packr-export"))
|
destinationDir(file("packr-export"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ task dist(type: Jar){
|
|||||||
|
|
||||||
task dzip(type: Zip){
|
task dzip(type: Zip){
|
||||||
from getServerFolder()
|
from getServerFolder()
|
||||||
archiveName "$appName-server-${getVersionString()}.zip"
|
archiveName "${generateDeployName('server')}.zip"
|
||||||
destinationDir(file("../deploy/"))
|
destinationDir(file("../deploy/"))
|
||||||
|
|
||||||
finalizedBy 'cleanup'
|
finalizedBy 'cleanup'
|
||||||
|
|||||||
Reference in New Issue
Block a user