mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* added OSX cmdline support (thanks to Christopher!)
This commit is contained in:
parent
738ad89bbf
commit
e26ae9f4e7
@ -149,7 +149,10 @@
|
|||||||
<javaproperty name="application.deployment" value="app"/>
|
<javaproperty name="application.deployment" value="app"/>
|
||||||
</jarbundler>
|
</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/filebot" />
|
||||||
|
<copy todir="${dir.dist}/${title}.app/Contents/MacOS" file="${dir.installer}/appbundle/install.sh" />
|
||||||
|
|
||||||
<copy todir="${dir.dist}/${title}.app/Contents/Resources/Java">
|
<copy todir="${dir.dist}/${title}.app/Contents/Resources/Java">
|
||||||
<fileset dir="${dir.lib}/native/mac-x86_64" includes="*.dylib" />
|
<fileset dir="${dir.lib}/native/mac-x86_64" includes="*.dylib" />
|
||||||
</copy>
|
</copy>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/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!!
|
dir_app=$dir_bin/../Resources/Java
|
||||||
# Help me fix this startup script! Contact me at rednoah@users.sourceforge.net
|
java -Dapplication.deployment=app "-Djna.library.path=$dir_app" -Xmx256m -jar "$dir_app/FileBot.jar" "$@"
|
||||||
java -Dapplication.deployment=app "-Djna.library.path=../Resources/Java" -Xmx256m -jar "../Resources/Java/FileBot.jar" "$@"
|
|
||||||
|
4
installer/appbundle/install.sh
Normal file
4
installer/appbundle/install.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
dir_bin=`dirname $0`
|
||||||
|
path_cmd=$dir_bin/filebot
|
||||||
|
sudo ln -s "$path_cmd" /usr/bin/filebot
|
Loading…
Reference in New Issue
Block a user