forked from Seitenbau/SBideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (70 loc) · 2.14 KB
/
build.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
buildscript {
dependencies {
classpath 'com.seitenbau.ploy:ploy-plugins-gradle:0.7.2.1519'
}
}
configurations { debAntTask }
dependencies { debAntTask 'org.vafer:jdeb:1.5' }
task build( ) {
ant.taskdef( name:'deb',
classname:'org.vafer.jdeb.ant.DebAntTask',
classpath: configurations.debAntTask.asPath)
// Copy control config
ant.copy(todir: "$buildDir/deb/control") {
fileset(dir: "$projectDir/deb/control")
filterset(begintoken:"[[", endtoken:"]]") {
filter(token:"version", value:"$version")
}
}
// Create the deb package
ant.deb(destfile:"$buildDir/sbideo-${version}.deb", control: "$buildDir/deb/control") {
data(src: "$projectDir", type:"directory") {
include( name: '*.json' )
include( name: '*.js' )
include( name: 'yarn.lock' )
mapper( type: "perm",
prefix: "/usr/lib/sbideo",
user: 'www-data',
group: 'www-data',
filemode: '644',
dirmode : '755'
)
}
data(src: "$projectDir/data", type:"directory") {
mapper( type: "perm",
prefix: "/usr/lib/sbideo/data_example",
user: 'www-data',
group: 'www-data',
filemode: '644',
dirmode : '755'
)
}
data(src: "$projectDir/incoming", type:"directory") {
mapper( type: "perm",
prefix: "/usr/lib/sbideo/incoming",
user: 'www-data',
group: 'www-data',
filemode: '644',
dirmode : '755'
)
}
data(src: "$projectDir/build", type:"directory") {
mapper( type: "perm",
prefix: "/usr/lib/sbideo/build",
user: 'www-data',
group: 'www-data',
filemode: '644',
dirmode : '755'
)
}
data(src: "$projectDir/src", type:"directory") {
mapper( type: "perm",
prefix: "/usr/lib/sbideo/src",
user: 'www-data',
group: 'www-data',
filemode: '644',
dirmode : '755'
)
}
}
}