view scripts/mac/launcher @ 63:f9ce379de456

add mac/build.sh
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 05 Jun 2025 10:50:14 -0600
parents 2bad9a272edc
children a4a97e8c204f
line wrap: on
line source

#!/bin/bash
set -e

DIR="$(cd "$(dirname "$0")/../Resources" && pwd)"

export DICTIONARIES="$DIR/dictionaries/"

for i in "$DIR"/jars/* ; do CLASSPATH="$CLASSPATH:$i" ; done

mkdir -p ~/.luan_editor

java -Xdock:name="Luan Editor" -classpath "$CLASSPATH" luan.Luan classpath:luan_editor/editor.luan 2>&1 | grep --line-buffered -v 'NSRemoteView\|NSSavePanel' | tee ~/.luan_editor/error.log

exit ${PIPESTATUS[0]}