fix build issue on windows

This commit is contained in:
Stefano Franz 2018-05-18 18:08:42 +01:00
parent d33f31614c
commit b2bc411321

View File

@ -46,16 +46,12 @@ task copyLauncherLibs(type: Copy, dependsOn: [project(':launcher').jar]) {
into "$buildDir/tmp/launcher-lib"
}
// The launcher building is done as it depends on application-specific settings which
// cannot be overridden later
task buildLauncher(type: Exec, dependsOn: [copyLauncherLibs]) {
description 'Build Launcher executable'
def isLinux = System.properties['os.name'].toLowerCase().contains('linux')
def isMac = System.properties['os.name'].toLowerCase().contains('mac')
if (!isLinux && !isMac)
throw new GradleException("Preparing distribution package is currently only supported on Linux/Mac")
if (isLinux || isMac) {
println("Detected *nix system, enabling distribution creation")
task buildLauncher(type: Exec, dependsOn: [copyLauncherLibs]) {
description 'Build Launcher executable'
def relativeDir
if (isLinux)
@ -156,4 +152,6 @@ task buildNode(type: Copy, dependsOn: [buildLauncher, project(':docs').tasks['ma
println("${outputDir}")
}
}
}else{
println("Not running on *nix, disabling distribution generation")
}