Commit 2aaa2df5 authored by Lukas Marik's avatar Lukas Marik

#782 create task for set macAppBundle, createApp task debens on debugMac

parent 3d32ac20
......@@ -283,36 +283,29 @@ task debugExe(dependsOn: debugJar, type: SetupExeTask) {
setBuildTypeInput('debug')
}
macAppBundle {
mainClassName = project.mainLauncherClassName
icon = '../ios/data/Tablexia_Icon_release.icns'
bundleJRE = true
}
task debugMac(dependsOn: debugJar){
createMacApp('debug','debugJar')
task debugMac(dependsOn: debugJar,) {
doLast {
setMacAppBundle('debug', 'debugJar')
}
}
task releaseMac(dependsOn: releaseJar){
// createMacApp('release','releaseJar')
task releaseMac(dependsOn: releaseJar) {
doLast {
setMacAppBundle('release', 'releaseJar')
}
}
def createMacApp(String buildType, String jarTaskPath){
def setMacAppBundle(String buildType, String jarTaskPath) {
macAppBundle{
setAppName(project.tablexiaAppName + '-' + buildType + '-' + project.tablexiaVersionName)
setJarTask(jarTaskPath)
macAppBundle {
mainClassName = project.mainLauncherClassName
icon = '../ios/data/Tablexia_Icon_release.icns'
bundleJRE = true
appName = project.tablexiaAppName + '-' + buildType + '-' + project.tablexiaVersionName
jarTask = jarTaskPath
}
createApp
def outPutReleaseFile = new File(project.buildDir.absolutePath + "/outputsApp")
if(!outPutReleaseFile.exists()) outPutReleaseFile.mkdir()
copy {
from project.buildDir.absolutePath + '/macApp/' + project.tablexiaAppName + '-' + buildType + '-' + project.tablexiaVersionName
into outPutReleaseFile
}
logger.lifecycle("RUN MAC: " + buildType + " BUNDLE: " + macAppBundle.appName + " - " + macAppBundle.jarTask)
}
......@@ -325,12 +318,13 @@ releaseJar.dependsOn classes
releaseJar.dependsOn(':util:checksum:runChecksum')
releaseExe.dependsOn handleJreTask
releaseExe.dependsOn classes
createApp.dependsOn debugMac
iTestJar.dependsOn classes
iTestJar.dependsOn iTestClasses
iTestJar.dependsOn(':util:checksum:runChecksum')
assemble.dependsOn([handleJreTask, debugJar, /*debugExe,*/ debugMac, releaseJar, /*releaseExe,*/ releaseMac ,iTestJar])
assemble.dependsOn([handleJreTask, debugJar, debugExe, debugMac ,releaseJar, releaseExe,releaseMac ,iTestJar])
jar.enabled = false
eclipse {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment