forked from chipster/chipster-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (47 loc) · 823 Bytes
/
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
apply plugin: 'distribution'
defaultTasks 'toolsZip', 'manualZip'
String[] executables = [ '**/*.sh', '**/*.py', '**/*.bash' ]
//version='3.6.3'
distTar {
// to get .tar.gz instead of .tgz
extension = "tar.gz"
compression = Compression.GZIP
}
task toolsZip(type: Zip) {
baseName = 'tools'
into('tools') {
from('tools') {
exclude executables
fileMode 0644
}
from('tools') {
include executables
fileMode 0755
}
}
}
task manualZip(type: Zip) {
baseName = 'manual'
into 'manual'
from 'manual'
fileMode 0644
}
distributions {
main {
contents {
into('modules') {
from('modules') {
exclude executables
fileMode 0644
}
from('modules') {
include executables
fileMode 0755
}
}
into('manual') {
from('manual')
}
}
}
}