1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-11 14:56:10 +03:00
Mindustry/ios/build.gradle
2019-08-26 12:23:09 -04:00

55 lines
1.0 KiB
Groovy

sourceSets.main.java.srcDirs = ["src/"]
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
ext{
mainClassName = "io.anuke.mindustry.IOSLauncher"
}
task copyAssets(){
doLast{
delete{
delete "assets/"
}
copy{
from "../core/assets"
into "assets/"
}
exec{
ignoreExitValue true
commandLine "sh", "./convert_audio.sh", "assets/sounds"
}
exec{
ignoreExitValue true
commandLine "sh", "./convert_audio.sh", "assets/music"
}
delete{
delete fileTree('assets') {
include '**/*.ogg'
}
}
}
}
task deploy{
dependsOn copyAssets
dependsOn createIPA
}
build.dependsOn copyAssets
launchIPhoneSimulator.dependsOn build
launchIPadSimulator.dependsOn build
launchIOSDevice.dependsOn build
createIPA.dependsOn build
robovm{
archs = "thumbv7:arm64"
}