Build snap package via ant task

This commit is contained in:
Reinhard Pointner 2016-08-06 01:37:16 +08:00
parent 1f1b38478d
commit d79b36eddb
2 changed files with 7 additions and 6 deletions

View File

@ -505,6 +505,11 @@
<target name="snap" depends="update, fatjar">
<copy tofile="${dir.dist}/snappy/filebot/FileBot.jar" file="${path.fatjar}" />
<copy todir="${dir.dist}/snappy/filebot/lib/amd64">
<fileset dir="${dir.lib}/native/linux-amd64" excludes="fpcalc, libmediainfo.so" />
</copy>
<!-- copy files and resolve ant variables -->
<copy todir="${dir.dist}/snappy" overwrite="yes" encoding="UTF-8" verbose="true">
<fileset dir="${dir.installer}/snappy" />
@ -514,11 +519,7 @@
</propertyset>
</filterset>
</copy>
<copy tofile="${dir.dist}/snappy/filebot/FileBot.jar" file="${path.fatjar}" />
<copy todir="${dir.dist}/snappy/filebot/lib/amd64">
<fileset dir="${dir.lib}/native/linux-amd64" />
</copy>
<chmod perm="+x" file="${dir.dist}/snappy/filebot/filebot.sh" verbose="yes" />
<exec dir="${dir.dist}/snappy" executable="snapcraft" failonerror="on">
<arg line="snap" />

View File

@ -1,5 +1,5 @@
name: filebot
version: @{version}.r@{revision}
version: @{version}
summary: The ultimate TV and Movie Renamer / Subtitle Downloader
description: FileBot is the ultimate tool for organizing and renaming your movies, tv shows or anime, and music well as downloading subtitles and artwork. It's smart and just works.