* dynamically generate syno package source and include filebot and filebot-node packages

This commit is contained in:
Reinhard Pointner 2015-05-20 09:52:11 +00:00
parent 7301bd0357
commit 8dea09fe54
4 changed files with 17 additions and 40 deletions

View File

@ -547,6 +547,7 @@
<info name="displayname" value="FileBot" />
<info name="description" value="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." />
<info name="maintainer" value="rednoah" />
<info name="maintainer_url" value="http://www.filebot.net/" />
<info name="distributor" value="FileBot" />
<info name="distributor_url" value="http://www.filebot.net/" />
<info name="support_url" value="http://www.filebot.net/forums/" />
@ -773,14 +774,7 @@
<target name="deploy-website" depends="login">
<!-- prepare ant variables required for dynamically generated website content -->
<property name="dir.download" value="${dir.build}/package-source" />
<property name="spk.download" value="http://downloads.sourceforge.net/project/filebot/filebot/FileBot_${version}/filebot-${version}-noarch.spk" />
<mkdir dir="${dir.download}" />
<get src="${spk.download}" dest="${dir.download}" usetimestamp="true" />
<checksum file="${dir.download}/filebot-${version}-noarch.spk" algorithm="MD5" property="spk.md5" />
<length file="${dir.download}/filebot-${version}-noarch.spk" property="spk.size" />
<taskdef name="package-source" classname="net.filebot.ant.spk.RepositoryTask" classpathref="jars.classpath" />
<!-- copy static website resources -->
<copy todir="${dir.dist}/website">
@ -808,7 +802,6 @@
<fileset dir="${dir.website}">
<include name="*.html" />
<include name="*.php" />
<include name="syno/*.json" />
</fileset>
<filterset begintoken="@{" endtoken="}">
<propertyset>
@ -817,6 +810,20 @@
</filterset>
</copy>
<!-- build synology package index -->
<property prefix="filebot-node" url="https://raw.githubusercontent.com/filebot/filebot-node/master/package.properties" />
<package-source file="${dir.dist}/website/syno/index.json">
<keyring file="${dir.installer}/gpg/FileBot.pub" />
<spk file="${dir.build}/package-source/filebot-${version}-noarch.spk" link="http://downloads.sourceforge.net/project/filebot/filebot/FileBot_${version}/filebot-${version}-noarch.spk">
<thumbnail url="http://app.filebot.net/syno/spk.icon.png" />
<snapshot url="http://app.filebot.net/syno/spk.snapshot.png" />
</spk>
<spk file="${dir.build}/package-source/filebot-node-${filebot-node.version}-noarch.spk" link="http://downloads.sourceforge.net/project/filebot/filebot/HEAD/filebot-node/filebot-node-${filebot-node.version}-noarch.spk">
<thumbnail url="http://i.imgur.com/bxHSJp9.png" />
<snapshot url="http://i.imgur.com/sCgINCR.png" />
</spk>
</package-source>
<!-- upload -->
<scp todir="${sf.user}:${sf.password}@${frs.website}" trust="yes" verbose="true" sftp="true">
<fileset dir="${dir.dist}/website" />

View File

@ -34,5 +34,6 @@
<dependency org="org.apache.httpcomponents" name="httpcore" rev="4.4.1" />
<dependency org="org.apache.httpcomponents" name="httpmime" rev="4.4.1" />
<dependency org="org.apache.httpcomponents" name="httpclient" rev="4.4.1" />
<dependency org="org.glassfish" name="javax.json" rev="1.0.4" />
</dependencies>
</ivy-module>

Binary file not shown.

View File

@ -1,31 +0,0 @@
/**
* Just add https://app.filebot.net/syno/ in Package Sources ;)
*
* Package Center -> Settings -> Package Sources -> Add -> Name: FileBot and Location: https://app.filebot.net/syno/ -> OK
*/
{
"keyrings":[
"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v2\n\nmQINBFVXCfQBEACsLS+2/QftaqHjgJh90Ki2Arjxl09qvN8kmiG6RvoELij3+sQD\n46o5oo+kOdaLEwk73Fel0xJ+ei8I9DQBKsyZ+vOJH60OQpg/98qiE7ztihnVOyON\nyQFrgMCHpIZPcy2fBTUpclvBrhPsgSnkRlxRB1y/IAMRMfg65LYXdQV7TmqMZb/o\novdmpHqTQQw+w/DSbMNKiv4MB7CV3RG0G6taXXvcqoE09tNpbA8xvsDKc+paTYaI\nK5iBWfk9wQN7XdHjqd9SPhhJfeP2rCa6JbEeosoTK1l7Igg5zLts3Q2jEG8uR43N\n/jtNsdv8gWS8KJO36i2j3SmR8z2P4bath2nJcMgQbcNwLO544nnNY/HfNlUR8K5s\nWvX+jiyfJZ4J+rrk8skPtlADkJ/OkEaoil0uIzhfqtK92/+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06Ow+M5rWPJYOzoVFhVe5+Wbr2MCcvHyviGVNC9\npS7apm+QU+/Fr3PqJQ/V3GOfMck1SvOmwTQQyJdCxbPeSn9wGZHDCmWlTLPxWXyF\n08e08YkL1xx+o7uZwI4Yv2sx7awWK8erAXPVfoBMZcRstqPJTngUQcU68Fw9TUwh\nRoK8yNiuKiGPZXeKQ0ztaALVZdwbTpTFyTf17hakLXTKRywiPz2e00EpEn8MNyEg\nOjyl9eMYE41fq5tfLWNxgK/FZRooJXMg+gOPNZ5Uh/GJNqSIIlENWnD11vD88I2Y\nrWDHRf9Pyyc5e+JtH0y+dkZojhoJO4AuaNO1Cap7kh4kmf4b5FOFsK8UOBKLpQ+C\nOVeuZGThTL3sHDBkx5iMRU1cXyJd/gvv3OZ28ifCqLL/JYdFZtpdb1TGlwtbA3VP\ntIL6qf/qM9M=\n=wZJp\n-----END PGP PUBLIC KEY BLOCK-----\n"
],
"packages": [
{
"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.",
"distributor":"FileBot",
"distributor_url":"http://www.filebot.net/",
"maintainer":"rednoah",
"maintainer_url":"http://www.filebot.net/",
"icon": "http://app.filebot.net/syno/spk.icon.png",
"snapshot": [ "http://app.filebot.net/syno/spk.snapshot.png" ],
"package": "filebot",
"version": "@{version}",
"size": @{spk.size},
"md5": "@{spk.md5}",
"link": "@{spk.download}",
"depsers": "ssh",
"qinst":true,
"qstart":true,
"qupgrade":true
}
]
}