* automated deployment and update of Synology Package Source descriptor

This commit is contained in:
Reinhard Pointner 2014-07-07 19:53:15 +00:00
parent ab56b60b2e
commit febffc4e0c
2 changed files with 32 additions and 22 deletions

View File

@ -644,12 +644,22 @@
</fileset>
</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 dir="${dir.dist}/website" encoding="utf-8" summary="yes">
<include name="**/*.html" />
<include name="**/*.php" />
<include name="**/*.json" />
<include name="**/*.json" />
<replacefilter token="@{version}" value="${version}" />
<replacefilter token="@{spk.md5}" value="${spk.md5}" />
</replace>
<!-- upload -->

View File

@ -4,25 +4,25 @@
* Package Center -> Settings -> Package Sources -> Add -> Name: FileBot and Location: http://packages.filebot.net/syno.json -> OK
*/
[
{
"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.",
"maintainer": "rednoah",
"distributor": "FileBot",
"distributor_url": "http://www.filebot.net/",
"beta": false,
"qinst": true,
"qupgrade": true,
"qstart": true,
"silent_upgrade": true,
"icon": "http://i.imgur.com/bxHSJp9.png",
"snapshot": [
"http://i.imgur.com/FozbUS0.png"
],
"package": "filebot",
"version": "@{version}",
"link": "https://downloads.sourceforge.net/project/filebot/filebot/HEAD/FileBot_4.1.2/filebot-4.1-noarch.spk",
"size": "31457280",
"md5": "32e87d89c960214a61531ff478f8ecf4"
}
{
"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.",
"maintainer": "rednoah",
"distributor": "FileBot",
"distributor_url": "http://www.filebot.net/",
"beta": false,
"qinst": true,
"qupgrade": true,
"qstart": true,
"silent_upgrade": true,
"icon": "http://i.imgur.com/bxHSJp9.png",
"snapshot": [
"http://i.imgur.com/FozbUS0.png"
],
"package": "filebot",
"version": "@{version}",
"link": "https://downloads.sourceforge.net/project/filebot/filebot/FileBot_@{version}/filebot-@{version}-noarch.spk",
"size": "31457280",
"md5": "@{spk.md5}"
}
]