summaryrefslogtreecommitdiff
path: root/packages/xmind/build.gradle
blob: edb66304bc644e168b04939d5482e0f2f65dad86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import org.xapek.yvesf.gradle.DownloadTask

version '7-update1'

task download(type: DownloadTask) {
    //source "http://dl2.xmind.net/xmind-downloads/xmind-${project.version}-portable.zip"
    source "http://dl3.xmind.net/xmind-${project.version}-portable.zip"
    sha256sum '2823c93178e55ff21d3a75ff2a9d2aa694f50a94a7220207a1ad757660cdf030'
}

task unpack(type: Copy) {
    into("${buildDir}/unpacked/dist")
    from(zipTree(download.destFile)) {
        include('XMind_Linux_64bit/**')
        include('Commons/**')
        include('*.html')
        include('*.txt')
    }
    from('XMind.ini') {
        eachFile { path = "XMind_Linux_64bit/XMind.ini" }
    }
}
unpack.dependsOn(download)

ospackage {
    into "/opt/${project.name}"
    from unpack.outputs.files
}

activator.bin['xmind'] = "/opt/${project.name}/XMind_Linux_64bit/XMind"