1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 00:08:51 -05:00

* added OSX cmdline support (thanks to Christopher!)

This commit is contained in:
Reinhard Pointner 2011-11-20 18:04:50 +00:00
parent 738ad89bbf
commit e26ae9f4e7
3 changed files with 12 additions and 3 deletions

View File

@ -149,7 +149,10 @@
<javaproperty name="application.deployment" value="app"/>
</jarbundler>
<!-- shell scripts -->
<copy todir="${dir.dist}/${title}.app/Contents/MacOS" file="${dir.installer}/appbundle/filebot" />
<copy todir="${dir.dist}/${title}.app/Contents/MacOS" file="${dir.installer}/appbundle/install.sh" />
<copy todir="${dir.dist}/${title}.app/Contents/Resources/Java">
<fileset dir="${dir.lib}/native/mac-x86_64" includes="*.dylib" />
</copy>

View File

@ -1,5 +1,7 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
dir_bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
# UNTESTED ON OSX, PROBABLY DOESN'T WORK!!
# Help me fix this startup script! Contact me at rednoah@users.sourceforge.net
java -Dapplication.deployment=app "-Djna.library.path=../Resources/Java" -Xmx256m -jar "../Resources/Java/FileBot.jar" "$@"
dir_app=$dir_bin/../Resources/Java
java -Dapplication.deployment=app "-Djna.library.path=$dir_app" -Xmx256m -jar "$dir_app/FileBot.jar" "$@"

View File

@ -0,0 +1,4 @@
#!/bin/bash
dir_bin=`dirname $0`
path_cmd=$dir_bin/filebot
sudo ln -s "$path_cmd" /usr/bin/filebot