-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-qnap.groovy
90 lines (80 loc) · 2.96 KB
/
build-qnap.groovy
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
82
83
84
85
86
87
88
89
90
import groovy.xml.*
def f = new File(project.properties.'repo.qnap', 'index.xml')
def now = new Date()
// use platform values from the QDMS package (see https://download.qnap.com/Liveupdate/QTS5.2.0/qpkgcenter_eng.xml)
def qnap = [
version: '4.3.4',
platforms: ['TS-NASARM', 'TS-NASX86', 'QB-103', 'TS-531P', 'TS-X16', 'TS-X28A', 'TS-X31P2', 'TS-X31P3', 'TS-X31X', 'TS-X31XU', 'TS-X32', 'TS-X32U', 'TS-X33', 'TS-X35', 'TS-X35A', 'TS-X35EU', 'TS-X41', 'TS-X42', 'TS-XA28A', 'TS-X73']
]
f.withWriter('UTF-8') { writer ->
def xml = new MarkupBuilder(writer)
xml.mkp.xmlDeclaration(version: "1.0", encoding: "UTF-8")
xml.plugins {
cachechk(now.format('yyyyMMddhhmmss'))
// FileBot
item {
name('FileBot')
internalName('filebot')
category('Essentials')
type('Utilities')
icon100('https://www.filebot.net/qnap/filebot_100.png')
icon80('https://www.filebot.net/qnap/filebot_80.png')
description(project.properties.'package.description')
developer('rednoah')
developerLink('https://www.filebot.net/')
fwVersion(qnap.version)
version(project.properties.'application.version')
qnap.platforms.each{ id ->
platform{
platformID(id)
location("https://get.filebot.net/filebot/FileBot_${project.properties.'application.version'}/FileBot_${project.properties.'application.version'}.qpkg")
}
}
snapshot('https://www.filebot.net/qnap/filebot-snapshot.png')
tutorialLink('https://www.filebot.net/cli.html')
forumLink('https://www.filebot.net/forums/')
}
// FileBot Node
item {
name('FileBot Node')
internalName('filebot-node')
category('Essentials')
type('Utilities')
icon100('https://www.filebot.net/qnap/filebot-node_100.png')
icon80('https://www.filebot.net/qnap/filebot-node_80.png')
description(project.properties.'filebot-node.description')
developer('rednoah')
developerLink('https://www.filebot.net/')
fwVersion(qnap.version)
version(project.properties.'filebot-node.version')
qnap.platforms.each{ id ->
platform{
platformID(id)
location("https://get.filebot.net/qnap/packages/filebot-node_${project.properties.'filebot-node.version'}.qpkg")
}
}
snapshot('https://www.filebot.net/qnap/filebot-node-snapshot.png')
forumLink('https://www.filebot.net/qnap/support.html')
}
// Java Installer
item {
name('Java Installer')
internalName('java-installer')
category('Essentials')
type('Developer Tools')
icon100('https://www.filebot.net/qnap/java-installer_100.png')
icon80('https://www.filebot.net/qnap/java-installer_80.png')
description(project.properties.'java-installer.description')
developer('rednoah')
developerLink('https://github.com/rednoah/java-installer')
fwVersion(qnap.version)
version(project.properties.'java-installer.version')
qnap.platforms.each{ id ->
platform{
platformID(id)
location("https://get.filebot.net/qnap/packages/java-installer_${project.properties.'java-installer.version'}.qpkg")
}
}
}
}
}