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{
|
2020-04-13 00:53:19 +03:00
|
|
|
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
|
|
|
}
|