Update deb build

This commit is contained in:
Reinhard Pointner 2017-02-14 23:48:04 +08:00
parent 133572f196
commit 2f16516ad8
3 changed files with 32 additions and 9 deletions

View File

@ -553,17 +553,14 @@
<copy-replace todir="${dir.staging}">
<fileset dir="${dir.installer}/deb" />
</copy-replace>
<copy todir="${dir.staging}">
<fileset dir="${dir.lib}/native/linux-${arch}" />
<fileset file="${dir.installer}/icons/${package.name}.svg" />
</copy>
<copy file="${path.fatjar}" tofile="${dir.staging}/FileBot.jar" />
<jdeb destfile="${dir.dist}/${package.name}_${version}_${deb.arch}.deb" control="${dir.staging}/control" compression="xz" verbose="true">
<tarfileset prefix="/usr/share/${package.name}" dir="${dir.staging}" includes="*.sh, fpcalc" filemode="755" />
<tarfileset prefix="/usr/share/${package.name}" dir="${dir.staging}" includes="*.jar, *.so" />
<tarfileset prefix="/usr/share/applications" dir="${dir.staging}" includes="*.desktop" />
<tarfileset prefix="/usr/share/icons/hicolor/scalable/apps" dir="${dir.staging}" includes="*.svg" />
<tarfileset fullpath="/usr/share/filebot/FileBot.jar" file="${path.fatjar}" />
<tarfileset prefix="/usr/share/filebot" dir="${dir.lib}/native/linux-${arch}" includes="*.so" />
<tarfileset prefix="/usr/share/filebot" dir="${dir.lib}/native/linux-${arch}" includes="fpcalc" filemode="755" />
<tarfileset prefix="/usr/share/filebot" dir="${dir.staging}" includes="*.sh" filemode="755" />
<tarfileset prefix="/usr/share/icons/hicolor/scalable/apps" dir="${dir.installer}/icons" includes="filebot.svg" />
<tarfileset prefix="/usr/share" dir="${dir.staging}/share" />
</jdeb>
</target>

View File

@ -0,0 +1,26 @@
[Desktop Entry]
Type=Service
Name=FileBot
Icon=filebot
ServiceTypes=KonqPopupMenu/Plugin
Actions=Rename;Subtitles;Checksum;Import;
MimeType=inode/directory;video/*;audio/*;text/*;
X-KDE-Priority=TopLevel
X-KDE-Submenu=FileBot
[Desktop Action Rename]
Name=Rename
Exec=filebot --mode Rename %F
[Desktop Action Subtitles]
Name=Subtitles
Exec=filebot --mode Subtitles %F
[Desktop Action Checksum]
Name=Checksum
Exec=filebot --mode SFV %F
[Desktop Action Import]
Name=Import to Media Library
Icon=utilities-terminal
Exec=konsole -e filebot -script fn:amc --output "$HOME/Media" --action duplicate -non-strict --log-file import.log --def excludeList=.excludes unsorted=y music=y artwork=y %F