From f82e684d7bab2dc20d7c252b7789fe6342fe4ad0 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 22 Nov 2018 17:43:41 +0700 Subject: [PATCH] Build architecture independent DEB package (and relegate most native dependencies to 3rd party packages assumed to be installed via apt) --- app.properties | 1 + build.xml | 7 +++++-- installer/deb/control/control | 2 +- installer/deb/filebot.sh | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app.properties b/app.properties index 1b3a8e9f..0cf86f50 100644 --- a/app.properties +++ b/app.properties @@ -69,6 +69,7 @@ deb.application.categories: AudioVideo;Video;Utility;FileTools; deb.application.mimetype: inode/directory;video/*;audio/*;text/*;application/*; deb.application.class: net-filebot-Main deb.application.depends: openjdk-11-jre, openjfx, mediainfo, libchromaprint-tools, p7zip-full, p7zip-rar +deb.jna.depends: libjnidispatch.so # Package Options tar.compression: xz diff --git a/build.xml b/build.xml index e98a141d..06d349ee 100644 --- a/build.xml +++ b/build.xml @@ -540,11 +540,14 @@ - + - + + + + diff --git a/installer/deb/control/control b/installer/deb/control/control index de8a18ad..4b7c92d7 100644 --- a/installer/deb/control/control +++ b/installer/deb/control/control @@ -1,6 +1,6 @@ Package: @{package.name} Version: @{application.version} -Architecture: amd64 +Architecture: all Maintainer: @{package.developer} <@{package.maintainer}> Description: @{package.synopsis} @{package.description} diff --git a/installer/deb/filebot.sh b/installer/deb/filebot.sh index 748a3ecb..e2dc3310 100644 --- a/installer/deb/filebot.sh +++ b/installer/deb/filebot.sh @@ -8,6 +8,6 @@ fi # select application data folder 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" "$@"