Mindustry/ios/build.gradle

56 lines
1.3 KiB
Groovy
Raw Normal View History

2019-04-08 20:03:18 +07:00
sourceSets.main.java.srcDirs = ["src/"]
2018-04-28 03:01:37 +07:00
2019-04-08 20:03:18 +07:00
ext{
2019-12-26 00:06:19 +07:00
mainClassName = "mindustry.ios.IOSLauncher"
2018-04-28 03:01:37 +07:00
}
2019-08-15 00:10:29 +07:00
task copyAssets(){
2019-08-15 00:53:23 +07:00
doLast{
2019-08-15 07:50:26 +07:00
delete{
delete "assets/"
}
2019-08-15 00:10:29 +07:00
2019-08-15 07:50:26 +07:00
copy{
from "../core/assets"
into "assets/"
}
exec{
2019-08-16 09:44:37 +07:00
ignoreExitValue true
2019-08-15 07:50:26 +07:00
commandLine "sh", "./convert_audio.sh", "assets/sounds"
}
exec{
2019-08-16 09:44:37 +07:00
ignoreExitValue true
2019-08-15 07:50:26 +07:00
commandLine "sh", "./convert_audio.sh", "assets/music"
}
delete{
delete fileTree('assets') {
include '**/*.ogg'
}
2019-08-15 00:10:29 +07:00
}
2019-08-15 00:53:23 +07:00
}
2019-08-15 00:10:29 +07:00
}
2019-08-26 23:23:09 +07:00
task deploy{
if(System.getProperty("os.name").contains("Mac")) dependsOn copyAssets
2019-08-26 23:23:09 +07:00
dependsOn createIPA
}
2018-04-28 03:01:37 +07:00
launchIPhoneSimulator.dependsOn build
launchIPadSimulator.dependsOn build
launchIOSDevice.dependsOn build
createIPA.dependsOn build
2019-04-08 20:03:18 +07:00
robovm{
archs = "thumbv7:arm64"
2020-10-30 02:44:06 +07:00
if(project.hasProperty("signIdentity")) println "iOS Sign Identity: " + project.property("signIdentity")
if(project.hasProperty("provisioningProfile")) println "iOS Provisioning Profile: " + project.property("provisioningProfile")
2020-10-30 02:10:09 +07:00
iosSignIdentity = project.property("signIdentity")
iosProvisioningProfile = project.property("provisioningProfile")
iosSkipSigning = false
2019-08-15 00:53:23 +07:00
}