mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 05:51:31 -04:00
+ Experimental platform-independent DEB package (that relies on existing debian dependencies for all native code)
This commit is contained in:
parent
b7d002abda
commit
a0cca9699f
21
build.xml
21
build.xml
@ -557,6 +557,27 @@
|
||||
</target>
|
||||
|
||||
|
||||
<target name="deb-universal" depends="revision" description="Build Universal Debian package">
|
||||
<property name="dir.staging" location="${dir.dist}/deb-universal" />
|
||||
|
||||
<!-- use Debian package structure -->
|
||||
<copy-replace todir="${dir.staging}">
|
||||
<fileset dir="${dir.installer}/deb" />
|
||||
</copy-replace>
|
||||
<copy-replace todir="${dir.staging}">
|
||||
<fileset dir="${dir.installer}/deb-universal" />
|
||||
</copy-replace>
|
||||
|
||||
<jdeb destfile="${dir.dist}/${application.name}_${application.version}_universal.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/jar" dir="${dir.dist}/lib" />
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
<target name="snap" depends="revision" description="Build Ubuntu SNAP package">
|
||||
<property name="dir.staging" location="${dir.dist}/snap" />
|
||||
<property name="dir.base" location="${dir.staging}/base" />
|
||||
|
11
installer/deb-universal/control/control
Normal file
11
installer/deb-universal/control/control
Normal file
@ -0,0 +1,11 @@
|
||||
Package: @{package.name}
|
||||
Version: @{application.version}
|
||||
Architecture: all
|
||||
Maintainer: @{package.developer} <@{package.maintainer}>
|
||||
Description: @{package.synopsis}
|
||||
@{package.description}
|
||||
Homepage: @{package.homepage}
|
||||
Section: utils
|
||||
Priority: extra
|
||||
Depends: openjdk-8-jre, openjfx, libjna-jni, libmediainfo0v5, libchromaprint-tools, p7zip-full, p7zip-rar
|
||||
Enhances: nautilus-actions
|
13
installer/deb-universal/filebot.sh
Normal file
13
installer/deb-universal/filebot.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
FILEBOT_HOME="/usr/share/filebot"
|
||||
|
||||
if [ -z "$HOME" ]; then
|
||||
echo '$HOME must be set'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# select application data folder
|
||||
APP_DATA="$HOME/.filebot"
|
||||
LIBRARY_PATH="/usr/lib/$(uname -m)-linux-gnu/jni"
|
||||
|
||||
/usr/lib/jvm/java-8-openjdk-*/bin/java -Dapplication.deployment=deb -Djna.boot.library.name=libjnidispatch.system -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" "$@"
|
Loading…
x
Reference in New Issue
Block a user