1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 15:58:52 -05:00

Add dedicated launcher for AUR

This commit is contained in:
Reinhard Pointner 2018-11-26 04:05:12 +07:00
parent bf6fecc143
commit e82370b57f
2 changed files with 17 additions and 1 deletions

View File

@ -613,7 +613,9 @@
<copy-replace todir="${dir.staging}">
<fileset dir="${dir.installer}/deb" />
</copy-replace>
<replace file="${dir.staging}/filebot.sh" token="-Dapplication.deployment=deb" value="-Dapplication.deployment=aur" encoding="utf-8" />
<copy-replace todir="${dir.staging}">
<fileset dir="${dir.installer}/aur" />
</copy-replace>
<tar destfile="${dir.dist}/${application.name}_${application.version}-aur.tar.xz" compression="${tar.compression}" longfile="posix" encoding="utf-8">
<tarfileset prefix="/usr/share/filebot/bin" dir="${dir.staging}" includes="*.sh" filemode="755" />

14
installer/aur/filebot.sh Normal file
View File

@ -0,0 +1,14 @@
#!/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="$FILEBOT_HOME/lib/$(uname -m):/usr/lib/$(uname -m)-linux-gnu/jni"
MODULE_PATH="/usr/share/openjfx/lib"
java -Dapplication.deployment=aur --module-path "$MODULE_PATH" --add-modules ALL-MODULE-PATH -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" "$@"