1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-11 20:05:04 -05:00

Build architecture independent DEB package (and relegate most native dependencies to 3rd party packages assumed to be installed via apt)

This commit is contained in:
Reinhard Pointner 2018-11-22 17:43:41 +07:00
parent 7fe7f817c5
commit f82e684d7b
4 changed files with 8 additions and 4 deletions

View File

@ -69,6 +69,7 @@ deb.application.categories: AudioVideo;Video;Utility;FileTools;
deb.application.mimetype: inode/directory;video/*;audio/*;text/*;application/*; deb.application.mimetype: inode/directory;video/*;audio/*;text/*;application/*;
deb.application.class: net-filebot-Main deb.application.class: net-filebot-Main
deb.application.depends: openjdk-11-jre, openjfx, mediainfo, libchromaprint-tools, p7zip-full, p7zip-rar deb.application.depends: openjdk-11-jre, openjfx, mediainfo, libchromaprint-tools, p7zip-full, p7zip-rar
deb.jna.depends: libjnidispatch.so
# Package Options # Package Options
tar.compression: xz tar.compression: xz

View File

@ -540,11 +540,14 @@
<fileset dir="${dir.installer}/deb" /> <fileset dir="${dir.installer}/deb" />
</copy-replace> </copy-replace>
<jdeb destfile="${dir.dist}/${application.name}_${application.version}_amd64.deb" control="${dir.staging}/control" compression="${tar.compression}" verbose="true"> <jdeb destfile="${dir.dist}/${application.name}_${application.version}.deb" control="${dir.staging}/control" compression="${tar.compression}" verbose="true">
<tarfileset prefix="/usr/share/filebot/bin" dir="${dir.staging}" includes="*.sh" filemode="755" /> <tarfileset prefix="/usr/share/filebot/bin" dir="${dir.staging}" includes="*.sh" filemode="755" />
<tarfileset prefix="/usr/share/filebot/jar" dir="${dir.dist}/lib" /> <tarfileset prefix="/usr/share/filebot/jar" dir="${dir.dist}/lib" />
<tarfileset prefix="/usr/share/filebot/lib" dir="${dir.lib}/native/linux-amd64" includes="libjnidispatch.so" /> <tarfileset prefix="lib/x86_64" dir="${dir.lib}/native/linux-amd64" includes="${deb.jna.depends}" />
<tarfileset prefix="lib/i686" dir="${dir.lib}/native/linux-i686" includes="${deb.jna.depends}" />
<tarfileset prefix="lib/aarch64" dir="${dir.lib}/native/linux-armv8" includes="${deb.jna.depends}" />
<tarfileset prefix="lib/armv7l" dir="${dir.lib}/native/linux-armv7l" includes="${deb.jna.depends}" />
<tarfileset prefix="/usr/share/icons/hicolor/scalable/apps" dir="${dir.installer}/icons" includes="filebot.svg" /> <tarfileset prefix="/usr/share/icons/hicolor/scalable/apps" dir="${dir.installer}/icons" includes="filebot.svg" />
<tarfileset prefix="/usr/share" dir="${dir.staging}/share" /> <tarfileset prefix="/usr/share" dir="${dir.staging}/share" />

View File

@ -1,6 +1,6 @@
Package: @{package.name} Package: @{package.name}
Version: @{application.version} Version: @{application.version}
Architecture: amd64 Architecture: all
Maintainer: @{package.developer} <@{package.maintainer}> Maintainer: @{package.developer} <@{package.maintainer}>
Description: @{package.synopsis} Description: @{package.synopsis}
@{package.description} @{package.description}

View File

@ -8,6 +8,6 @@ fi
# select application data folder # select application data folder
APP_DATA="$HOME/.filebot" APP_DATA="$HOME/.filebot"
LIBRARY_PATH="$FILEBOT_HOME/lib" LIBRARY_PATH="$FILEBOT_HOME/lib/$(uname -m)"
java -Dapplication.deployment=deb -Dnet.filebot.Archive.extractor=SevenZipExecutable @{java.application.options} @{linux.application.options} @{linux.desktop.application.options} $JAVA_OPTS $FILEBOT_OPTS -jar "$FILEBOT_HOME/jar/filebot.jar" "$@" java -Dapplication.deployment=deb -Dnet.filebot.Archive.extractor=SevenZipExecutable @{java.application.options} @{linux.application.options} @{linux.desktop.application.options} $JAVA_OPTS $FILEBOT_OPTS -jar "$FILEBOT_HOME/jar/filebot.jar" "$@"