JAL-3830 unix and macos wrappers. Symbolic link to jalviewc-macos in Contents/MacOS...
[jalview.git] / utils / install4j / macos_jalview
diff --git a/utils/install4j/macos_jalview b/utils/install4j/macos_jalview
deleted file mode 100755 (executable)
index aabdba8..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-
-ARG1=$1
-WDIR="$( pwd )"
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
-APP=${DIR%/Contents/MacOS}
-
-if [ "${APP}" = "${APP%.app}" ]; then
-  echo "Could not find .app dir" >&2
-  exit 1
-fi
-
-# check to see if $1 is set and is not start of other cli set args
-OPEN=""
-if [ -n "$ARG1" -a "$ARG1" = "${ARG1#-}" ]; then
- # first argument exists and does not start with a "-"
- OPEN="-open"
-fi
-
-# This would open the Jalview application as if double clicking, with the supplied args
-# open -a ${APP} --args $OPEN "$@"
-### but we don't want to run getdown in case of autoupdates or changing the working dir, so ...
-
-APPDIR="${APP}/Contents/Resources/app"
-JAVA="${APPDIR}/jre/Contents/Home/bin/java"
-CLASSPATH=""; for x in $(grep -e 'code = ' "${APP}/Contents/Resources/app/getdown.txt" | sed -e 's/^code\s*=\s*//;'); do [ -n "$CLASSPATH" ] && CLASSPATH="${CLASSPATH}:"; CLASSPATH="${CLASSPATH}${APPDIR}/${x}"; done
-
-"$JAVA" -cp "$CLASSPATH" jalview.bin.Launcher $OPEN "$@"