- 編集済み
The run.sh script had a few problems in it:
- dirname
$0
doesn't seem to work on my system, not sure why. - Space in the path names were causing problems.
- Setting $APP to basename $APP seemed like it was breaking things.
The below run.sh script works for me when I do an "open Spine.app" on the command line, as well as launching it from the finder by double clicking.
#!/bin/bash
APP=`dirname "${BASH_SOURCE[0]}"` # run.sh -> MacOS
APP=`dirname "${APP}"` # MacOS -> Contents
APP=`dirname "${APP}"` # Contents -> Xxx.app
cd `dirname "${APP}"` # cd to Xxx.app parent dir
"${APP}/Contents/MacOS/launcher/jre/bin/java" \
-server \
-Xdock:name="Spine" \
-Xdock:icon=../Resources/icon.icns \
-Dapple.laf.useScreenMenuBar=true \
-Dcom.apple.macos.useScreenMenuBar=true \
-Dapple.awt.showGrowBox=false \
-Dfile.encoding=UTF-8 \
-Dapp="${APP}" \
${EXTRAARGS} \
-Xmx512m \
-jar "${APP}/Contents/MacOS/launcher/launcher.jar" \
com.esotericsoftware.spine.editor.launcher.Launcher \
"$@" \
2>&1
exit 0