* automated deployment and update of Synology Package Source descriptor
This commit is contained in:
parent
ab56b60b2e
commit
febffc4e0c
12
build.xml
12
build.xml
|
@ -644,12 +644,22 @@
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
<!-- get MD5 sum for Synology Package -->
|
||||||
|
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${dir.lib}/groovy.jar" />
|
||||||
|
<groovy>
|
||||||
|
def releaseFeed = new URL("http://sourceforge.net/projects/filebot/files/filebot/FileBot_${properties['version']}//list")
|
||||||
|
def spk = new groovy.json.JsonSlurper().parse(releaseFeed).find{ it.key.endsWith('.spk') }.value
|
||||||
|
properties['spk.md5'] = spk.md5
|
||||||
|
</groovy>
|
||||||
|
<fail unless="spk.md5" />
|
||||||
|
|
||||||
<!-- replace variables for new release -->
|
<!-- replace variables for new release -->
|
||||||
<replace dir="${dir.dist}/website" encoding="utf-8" summary="yes">
|
<replace dir="${dir.dist}/website" encoding="utf-8" summary="yes">
|
||||||
<include name="**/*.html" />
|
<include name="**/*.html" />
|
||||||
<include name="**/*.php" />
|
<include name="**/*.php" />
|
||||||
<include name="**/*.json" />
|
<include name="**/*.json" />
|
||||||
<replacefilter token="@{version}" value="${version}" />
|
<replacefilter token="@{version}" value="${version}" />
|
||||||
|
<replacefilter token="@{spk.md5}" value="${spk.md5}" />
|
||||||
</replace>
|
</replace>
|
||||||
|
|
||||||
<!-- upload -->
|
<!-- upload -->
|
||||||
|
|
|
@ -4,25 +4,25 @@
|
||||||
* Package Center -> Settings -> Package Sources -> Add -> Name: FileBot and Location: http://packages.filebot.net/syno.json -> OK
|
* Package Center -> Settings -> Package Sources -> Add -> Name: FileBot and Location: http://packages.filebot.net/syno.json -> OK
|
||||||
*/
|
*/
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"dname": "FileBot",
|
"dname": "FileBot",
|
||||||
"desc": "FileBot is the ultimate tool for organizing and renaming your movies, TV shows or anime, as well as downloading subtitles and artwork. It's smart and just works.",
|
"desc": "FileBot is the ultimate tool for organizing and renaming your movies, TV shows or anime, as well as downloading subtitles and artwork. It's smart and just works.",
|
||||||
"maintainer": "rednoah",
|
"maintainer": "rednoah",
|
||||||
"distributor": "FileBot",
|
"distributor": "FileBot",
|
||||||
"distributor_url": "http://www.filebot.net/",
|
"distributor_url": "http://www.filebot.net/",
|
||||||
"beta": false,
|
"beta": false,
|
||||||
"qinst": true,
|
"qinst": true,
|
||||||
"qupgrade": true,
|
"qupgrade": true,
|
||||||
"qstart": true,
|
"qstart": true,
|
||||||
"silent_upgrade": true,
|
"silent_upgrade": true,
|
||||||
"icon": "http://i.imgur.com/bxHSJp9.png",
|
"icon": "http://i.imgur.com/bxHSJp9.png",
|
||||||
"snapshot": [
|
"snapshot": [
|
||||||
"http://i.imgur.com/FozbUS0.png"
|
"http://i.imgur.com/FozbUS0.png"
|
||||||
],
|
],
|
||||||
"package": "filebot",
|
"package": "filebot",
|
||||||
"version": "@{version}",
|
"version": "@{version}",
|
||||||
"link": "https://downloads.sourceforge.net/project/filebot/filebot/HEAD/FileBot_4.1.2/filebot-4.1-noarch.spk",
|
"link": "https://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/filebot-@{version}-noarch.spk",
|
||||||
"size": "31457280",
|
"size": "31457280",
|
||||||
"md5": "32e87d89c960214a61531ff478f8ecf4"
|
"md5": "@{spk.md5}"
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in New Issue