diff --git a/Linux.sh b/Linux.sh new file mode 100644 index 0000000..78ee585 --- /dev/null +++ b/Linux.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +#This script is intended for launch on *nix machines + +#-Xmx4000m indicates 4000 mb of memory, adjust number up or down as needed +#Script must be in the same directory as TBtools.jar +#Add the flag -Ddevelopment = true to use features still in development +prefix=`dirname $(readlink $0 || echo $0)` +exec java -Xmx4000m \ + -Dapple.laf.useScreenMenuBar=true \ + -Djava.net.preferIPv4Stack=true \ + -jar "$prefix"/TBtools_v0.299.jar "$@" diff --git a/Mac.command b/Mac.command new file mode 100644 index 0000000..b653466 --- /dev/null +++ b/Mac.command @@ -0,0 +1,16 @@ +#!/bin/sh + +#This script is intended for launching on Macs +#It may or may not work on *nix, definitely not on windows + +#apple.laf.useScreenMenuBar for Macs, to put menu bar at top of screen +#-Xdock:name again for Macs, sets the name in menu bar +#-Xmx4000m indicates 4000 mb of memory, adjust number up or down as needed +#Script must be in the same directory as igv.jar +#Add the flag -Ddevelopment = true to use features still in development +prefix=`dirname $(readlink $0 || echo $0)` +exec java -Xmx4000m \ + -Xdock:name="TBtools" \ + -Dapple.laf.useScreenMenuBar=true \ + -Djava.net.preferIPv4Stack=true \ + -jar "$prefix"/TBtools_v0.299.jar "$@" diff --git a/Win.bat b/Win.bat new file mode 100644 index 0000000..d1de960 --- /dev/null +++ b/Win.bat @@ -0,0 +1,4 @@ +::Get the current batch file's short path +for %%x in (%0) do set BatchPath=%%~dpsx +for %%x in (%BatchPath%) do set BatchPath=%%~dpsx +java -Xmx1200m -Dproduction=true -Djava.net.preferIPv4Stack=true -Dsun.java2d.noddraw=true -jar %BatchPath%\TBtools_v0.299.jar %*