Skip to content

Commit

Permalink
add script to help some users
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ-Chen committed Aug 5, 2016
1 parent a5dfdfb commit 0f60ab1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Linux.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
16 changes: 16 additions & 0 deletions Mac.command
Original file line number Diff line number Diff line change
@@ -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 "$@"
4 changes: 4 additions & 0 deletions Win.bat
Original file line number Diff line number Diff line change
@@ -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 %*

0 comments on commit 0f60ab1

Please sign in to comment.