blob: bf9f982fa93cd092d3a182bceabde8321cf21e70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import org.xapek.yvesf.gradle.DownloadTask
version '15.0.2'
task download(type: DownloadTask) {
source "https://download.jetbrains.com/idea/ideaIU-${project.version}.tar.gz"
sha256sum '5a3f6d8ba6d5ce8c505f13564c04cf2f674f1c022b9a33871013acb0ebe10fe5'
}
task untar(type: Copy) {
from tarTree(download.destFile)
into file("${buildDir}/unpacked/dist")
eachFile { FileCopyDetails fcd ->
fcd.path = fcd.path.substring(path.indexOf('/')+1)
}
}
untar.dependsOn(download)
ospackage {
into "/opt/${project.name}"
from untar.outputs.files
}
|