Skip to content

Commit

Permalink
Remove 'ant jar' from build-mac-app script
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiARIA committed Oct 25, 2015
1 parent 75b3ecd commit 9642315
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Lambda/build-mac-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@

CD=$(cd `dirname $0`; pwd)

JAR=${CD}/lambda-magica/lm.jar
if [ ! -e ${JAR} ]; then
echo "Error: lm.jar not found. Run 'ant jar' first."
exit 1
fi

OUTPUT_DIR=${CD}/product
APP_ROOT=${OUTPUT_DIR}/LambdaMagica.app

CONTENTS=${APP_ROOT}/Contents
EXECUTABLE=${CONTENTS}/MacOS/run.sh

ant jar

mkdir -p ${CONTENTS}/MacOS ${CONTENTS}/Resources

cp assets/osx/run.sh ${EXECUTABLE}
chmod +x ${EXECUTABLE}

cp lambda-magica/lm.jar ${CONTENTS}/MacOS
cp ${JAR} ${CONTENTS}/MacOS
cp assets/osx/Info.plist ${CONTENTS}

0 comments on commit 9642315

Please sign in to comment.