1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-20 21:08:42 +03:00
Mindustry/ios/build.gradle

49 lines
951 B
Groovy
Raw Normal View History

2019-04-08 16:03:18 +03:00
sourceSets.main.java.srcDirs = ["src/"]
2018-04-27 23:01:37 +03:00
2019-04-08 16:03:18 +03:00
ext{
2019-12-25 20:06:19 +03:00
mainClassName = "mindustry.ios.IOSLauncher"
2018-04-27 23:01:37 +03:00
}
2019-08-14 20:10:29 +03:00
task copyAssets(){
2019-08-14 20:53:23 +03:00
doLast{
2019-08-15 03:50:26 +03:00
delete{
delete "assets/"
}
2019-08-14 20:10:29 +03:00
2019-08-15 03:50:26 +03:00
copy{
from "../core/assets"
into "assets/"
}
exec{
2019-08-16 05:44:37 +03:00
ignoreExitValue true
2019-08-15 03:50:26 +03:00
commandLine "sh", "./convert_audio.sh", "assets/sounds"
}
exec{
2019-08-16 05:44:37 +03:00
ignoreExitValue true
2019-08-15 03:50:26 +03:00
commandLine "sh", "./convert_audio.sh", "assets/music"
}
delete{
delete fileTree('assets') {
include '**/*.ogg'
}
2019-08-14 20:10:29 +03:00
}
2019-08-14 20:53:23 +03:00
}
2019-08-14 20:10:29 +03:00
}
2019-08-26 19:23:09 +03:00
task deploy{
if(System.getProperty("os.name").contains("Mac")) dependsOn copyAssets
2019-08-26 19:23:09 +03:00
dependsOn createIPA
}
2018-04-27 23:01:37 +03:00
launchIPhoneSimulator.dependsOn build
launchIPadSimulator.dependsOn build
launchIOSDevice.dependsOn build
createIPA.dependsOn build
2019-04-08 16:03:18 +03:00
robovm{
archs = "thumbv7:arm64"
2019-08-14 20:53:23 +03:00
}