mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Build self-contained APP bundle (non-MAS)
This commit is contained in:
parent
3f960d685e
commit
5313fc081d
@ -378,14 +378,6 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="cask" description="Build Mac application bundle">
|
|
||||||
<tar destfile="${dir.dist}/${release}-darwin.tar.xz" compression="xz" longfile="posix" encoding="utf-8">
|
|
||||||
<tarfileset file="${path.fatjar}" fullpath="FileBot.jar" />
|
|
||||||
<tarfileset dir="${dir.installer}/cask" includes="*.sh" filemode="755" />
|
|
||||||
<tarfileset prefix="lib" dir="${dir.lib}/native/mac-x86_64" includes="fpcalc" filemode="755" />
|
|
||||||
<tarfileset prefix="lib" dir="${dir.lib}/native/mac-x86_64" includes="*.dylib" />
|
|
||||||
</tar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="appbundle-maspkg-core">
|
<target name="appbundle-maspkg-core">
|
||||||
|
@ -16,5 +16,8 @@ done
|
|||||||
BIN=`dirname "$PRG"`
|
BIN=`dirname "$PRG"`
|
||||||
APP_ROOT=`cd "$BIN/.." && pwd`
|
APP_ROOT=`cd "$BIN/.." && pwd`
|
||||||
|
|
||||||
|
JAVA_HOME="$APP_ROOT/PlugIns/jre-@{java.version}.jre/Contents/Home"
|
||||||
|
LIBRARY_PATH="$APP_ROOT/MacOS"
|
||||||
|
|
||||||
# launch filebot
|
# launch filebot
|
||||||
"$APP_ROOT"/PlugIns/*.jre/Contents/Home/bin/java @{java.application.options} -Dapplication.deployment=app -Djava.awt.headless=true -Dapple.awt.UIElement=true -Djna.boot.library.path="$APP_ROOT/MacOS" -Djna.library.path="$APP_ROOT/MacOS" -Djava.library.path="$APP_ROOT/MacOS" -Dnet.filebot.AcoustID.fpcalc="$APP_ROOT/MacOS/fpcalc" $JAVA_OPTS -classpath "$APP_ROOT/Java/*" net.filebot.Main "$@"
|
"$JAVA_HOME/bin/java" @{java.application.options} -Dapplication.deployment=app -Djava.awt.headless=true -Dapple.awt.UIElement=true -Djna.boot.library.path="$LIBRARY_PATH" -Djna.library.path="$LIBRARY_PATH" -Djava.library.path="$LIBRARY_PATH" -Dnet.filebot.AcoustID.fpcalc="$LIBRARY_PATH/fpcalc" $JAVA_OPTS -classpath "$APP_ROOT/Java/*" net.filebot.Main "$@"
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
APP_EXE=`readlink /usr/local/bin/filebot`
|
|
||||||
APP_ROOT=`dirname "$APP_EXE"`
|
|
||||||
|
|
||||||
# start filebot
|
|
||||||
/usr/libexec/java_home --failfast --version "@{jvm.version}+" --exec java @{java.application.options} -Dapplication.deployment=cask -Djava.awt.headless=true -Dapple.awt.UIElement=true -Djna.library.path="$APP_ROOT/lib" -Djava.library.path="$APP_ROOT/lib" -Dnet.filebot.AcoustID.fpcalc="$APP_ROOT/lib/fpcalc" $JAVA_OPTS -classpath "$APP_ROOT/*" @{main.class} "$@"
|
|
Loading…
Reference in New Issue
Block a user