diff --git a/build.xml b/build.xml index 91f9a746..5b457742 100644 --- a/build.xml +++ b/build.xml @@ -334,40 +334,12 @@ - - - - - - - - - - - + - - - - - + + + + @@ -865,7 +837,7 @@ - + diff --git a/installer/appbundle/MacOS/filebot.sh b/installer/appbundle/MacOS/filebot.sh deleted file mode 100755 index c4b227c9..00000000 --- a/installer/appbundle/MacOS/filebot.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -PRG="$0" - -# resolve relative symlinks -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi -done - -# get canonical path -WORKING_DIR=`pwd` -PRG_DIR=`dirname "$PRG"` -APP_ROOT=`cd "$PRG_DIR/../.." && pwd` - -# restore original working dir -cd "$WORKING_DIR" - -# start filebot -/usr/libexec/java_home --failfast --version "1.8+" --exec java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=true -Dapple.awt.UIElement=true -Djna.nounpack=true -Dapplication.deployment=app -Djna.library.path="$APP_ROOT/Contents/MacOS" -Djava.library.path="$APP_ROOT/Contents/MacOS" -Dnet.filebot.AcoustID.fpcalc="$APP_ROOT/Contents/MacOS/fpcalc" $JAVA_OPTS -jar "$APP_ROOT"/Contents/Java/*.jar "$@" diff --git a/installer/cask/filebot.sh b/installer/cask/filebot.sh new file mode 100755 index 00000000..c7ae44e0 --- /dev/null +++ b/installer/cask/filebot.sh @@ -0,0 +1,6 @@ +#!/bin/sh +APP_EXE=`readlink /usr/local/bin/filebot` +APP_ROOT=`dirname "$APP_EXE"` + +# start filebot +/usr/libexec/java_home --failfast --version "9+" --exec java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=true -Dapple.awt.UIElement=true -Djna.nounpack=true -Dapplication.deployment=cask -Djna.library.path="$APP_ROOT/lib" -Djava.library.path="$APP_ROOT/lib" -Dnet.filebot.AcoustID.fpcalc="$APP_ROOT/lib/fpcalc" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@"