forked from freeplane/freeplane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-packages.gradle
54 lines (43 loc) · 1.36 KB
/
linux-packages.gradle
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
task freeplaneDeb(type: Deb) {
destinationDirectory = new File(globalDist)
packageName = 'freeplane'
version = distVersion + "~upstream"
release = 1
requires('default-jre | java7-runtime')
from(rootDir.path + "/freeplane_framework/script/") {
include("freeplane.svg")
into("/usr/share/icons/hicolor/scalable/apps")
}
from(rootDir.path + "/freeplane_framework/script/") {
include("freeplane.png")
into("/usr/share/icons/hicolor/32x32/apps")
}
from(rootDir.path + "/debian-meta-data") {
include('freeplane.desktop')
into('/usr/share/applications')
}
from(rootDir.path + "/debian-meta-data/") {
include("freeplane.sharedmimeinfo")
into('/usr/share/mime/packages')
rename('freeplane.sharedmimeinfo', 'freeplane.xml')
}
from(rootDir.path + "/debian-meta-data/") {
include("freeplane.mime")
into('/usr/lib/mime/packages')
rename("freeplane.mime", "freeplane")
}
from(globalBin) {
include('**')
exclude('freeplane.sh')
into('/usr/share/freeplane')
}
from(globalBin) {
include('freeplane.sh')
fileMode = 0755
into('/usr/share/freeplane')
}
link('/usr/bin/freeplane', '/usr/share/freeplane/freeplane.sh')
for (p in subprojects) {
dependsOn p.tasks.getByPath("build")
}
}