diff --git a/build.xml b/build.xml index bff9737d..4ab2c84e 100644 --- a/build.xml +++ b/build.xml @@ -219,38 +219,38 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - + + + + + diff --git a/installer/appbundle/filebot b/installer/appbundle/filebot deleted file mode 100644 index 69fb2aa4..00000000 --- a/installer/appbundle/filebot +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done -BIN_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - -JAVAROOT=$BIN_DIR/../Resources/Java -java -XX:+TieredCompilation -Djava.awt.headless=true -Dunixfs=false -DuseExtendedFileAttributes=true -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=app "-Djna.library.path=$JAVAROOT" "-Djava.library.path=$JAVAROOT" "-Dnet.sourceforge.filebot.AcoustID.fpcalc=$JAVAROOT/fpcalc" -jar "$JAVAROOT/FileBot.jar" "$@" \ No newline at end of file diff --git a/installer/appbundle/filebot.sh b/installer/appbundle/filebot.sh new file mode 100644 index 00000000..c0d495fd --- /dev/null +++ b/installer/appbundle/filebot.sh @@ -0,0 +1,8 @@ +#!/bin/bash +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done +SOURCE="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + +APP_ROOT="$SOURCE/../.." + +java -XX:+TieredCompilation -Djava.awt.headless=true -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=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" -jar "$APP_ROOT"/Contents/Java/* "$@" diff --git a/installer/appbundle/install.sh b/installer/appbundle/install.sh index 695d5705..8bf5006e 100644 --- a/installer/appbundle/install.sh +++ b/installer/appbundle/install.sh @@ -1,4 +1,6 @@ #!/bin/bash -dir_bin=`dirname $0` -path_cmd=$dir_bin/filebot -sudo ln -s "$path_cmd" /usr/bin/filebot +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done +SOURCE="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + +sudo ln -s -f "$SOURCE/filebot.sh" "/usr/bin/filebot" diff --git a/lib/build/appbundler.jar b/lib/build/appbundler.jar new file mode 100644 index 00000000..ef30f1cb Binary files /dev/null and b/lib/build/appbundler.jar differ diff --git a/lib/build/jarbundler.jar b/lib/build/jarbundler.jar deleted file mode 100644 index 51279879..00000000 Binary files a/lib/build/jarbundler.jar and /dev/null differ