mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-11 08:15:35 +03:00
Make file name orders deterministic (#9443)
This commit is contained in:
parent
a2356d74aa
commit
cde4fa2c29
@ -106,12 +106,12 @@ allprojects{
|
||||
generateLocales = {
|
||||
def output = 'en\n'
|
||||
def bundles = new File(project(':core').projectDir, 'assets/bundles/')
|
||||
bundles.listFiles().each{ other ->
|
||||
if(other.name == "bundle.properties") return
|
||||
output += other.name.substring("bundle".length() + 1, other.name.lastIndexOf('.')) + "\n"
|
||||
bundles.list().sort().each{ name ->
|
||||
if(name == "bundle.properties") return
|
||||
output += name.substring("bundle".length() + 1, name.lastIndexOf('.')) + "\n"
|
||||
}
|
||||
new File(project(':core').projectDir, 'assets/locales').text = output
|
||||
new File(project(':core').projectDir, 'assets/basepartnames').text = new File(project(':core').projectDir, 'assets/baseparts/').list().join("\n")
|
||||
new File(project(':core').projectDir, 'assets/basepartnames').text = new File(project(':core').projectDir, 'assets/baseparts/').list().sort().join("\n")
|
||||
}
|
||||
|
||||
writeVersion = {
|
||||
|
Loading…
Reference in New Issue
Block a user