mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 13:08:20 +07:00
40 lines
964 B
Groovy
40 lines
964 B
Groovy
sourceSets.main.java.srcDirs = ["src/"]
|
|
|
|
ext{
|
|
mainClassName = "mindustry.ios.IOSLauncher"
|
|
}
|
|
|
|
task copyAssets(){
|
|
doLast{
|
|
delete{
|
|
delete "assets/"
|
|
}
|
|
|
|
copy{
|
|
from "../core/assets"
|
|
into "assets/"
|
|
}
|
|
}
|
|
}
|
|
|
|
task deploy{
|
|
if(System.getProperty("os.name").contains("Mac")) dependsOn copyAssets
|
|
dependsOn createIPA
|
|
}
|
|
|
|
launchIPhoneSimulator.dependsOn build
|
|
launchIPadSimulator.dependsOn build
|
|
launchIOSDevice.dependsOn build
|
|
createIPA.dependsOn build
|
|
|
|
robovm{
|
|
archs = "thumbv7:arm64"
|
|
|
|
if(project.hasProperty("signIdentity")) println "iOS Sign Identity: " + project.property("signIdentity")
|
|
if(project.hasProperty("provisioningProfile")) println "iOS Provisioning Profile: " + project.property("provisioningProfile")
|
|
|
|
iosSignIdentity = project.properties["signIdentity"]
|
|
iosProvisioningProfile = project.properties["provisioningProfile"]
|
|
iosSkipSigning = false
|
|
}
|