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:
parent
738ad89bbf
commit
e26ae9f4e7
@ -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>
|
||||
|
@ -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" "$@"
|
||||
|
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