mirror of
https://github.com/corda/corda.git
synced 2025-03-14 00:06:45 +00:00
Improve tarball packaging.
1) Fix path bug that breaks tarball build task on Mint Linux 2) Tarballs conventionally contain a single top level directory, to avoid extraction dumping things into the current directory unexpectedly.
This commit is contained in:
parent
cedfb3f069
commit
8a70cd1ba4
16
node/dist/build.gradle
vendored
16
node/dist/build.gradle
vendored
@ -85,6 +85,7 @@ if (isLinux || isMac) {
|
||||
})
|
||||
|
||||
commandLine = [
|
||||
'/usr/bin/env',
|
||||
'javapackager',
|
||||
'-deploy',
|
||||
'-nosign',
|
||||
@ -120,7 +121,8 @@ if (isLinux || isMac) {
|
||||
task buildNode(type: Copy, dependsOn: [buildLauncher, project(':docs').tasks['makeDocs'], project(':node').tasks['jar']]) {
|
||||
description 'Build stand-alone Corda Node distribution'
|
||||
|
||||
into(outputDir)
|
||||
def dir = file("$outputDir/corda-enterprise")
|
||||
into(dir)
|
||||
|
||||
from(buildLauncher.launcherBinDir) {
|
||||
into("launcher")
|
||||
@ -142,15 +144,11 @@ if (isLinux || isMac) {
|
||||
into(".")
|
||||
}
|
||||
|
||||
from(project(':docs').buildDir) {
|
||||
into("docs")
|
||||
}
|
||||
|
||||
doLast {
|
||||
new File("${outputDir}/cordapps").mkdirs()
|
||||
new File("${outputDir}/drivers").mkdirs()
|
||||
new File("${dir}/cordapps").mkdirs()
|
||||
new File("${dir}/drivers").mkdirs()
|
||||
println("Stand-alone Corda Node application available at:")
|
||||
println("${outputDir}")
|
||||
println("${dir}")
|
||||
}
|
||||
}
|
||||
|
||||
@ -161,7 +159,7 @@ if (isLinux || isMac) {
|
||||
destinationDir = file(tarballDir)
|
||||
extension = "tar.bz2"
|
||||
|
||||
doLast{
|
||||
doLast {
|
||||
println("Distribution tarball available at:")
|
||||
println("${tarballDir}/${baseName}.${extension}")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user