diff --git a/build.gradle b/build.gradle index 9411b3544d..a30e9d68e9 100644 --- a/build.gradle +++ b/build.gradle @@ -166,13 +166,14 @@ project(":ios"){ def props = new Properties() if(vfile.exists()){ props.load(new FileInputStream(vfile)) + }else{ + props['app.id'] = 'io.anuke.mindustry' + props['app.version'] = '4.2.1' + props['app.mainclass'] = 'io.anuke.mindustry.IOSLauncher' + props['app.executable'] = 'IOSLauncher' + props['app.name'] = 'Mindustry' } - - props['app.id'] = 'io.anuke.mindustry' - props['app.version'] = '4.2.1' - props['app.mainclass'] = 'io.anuke.mindustry.IOSLauncher' - props['app.executable'] = 'IOSLauncher' - props['app.name'] = 'Mindustry' + props['app.build'] = (!props.containsKey("app.build") ? 40 : props['app.build'].toInteger() + 1) + "" props.store(vfile.newWriter(), null) }