Mercurial Hosting > editor
view scripts/mac/launcher @ 75:7f5b3824f4d4
add Windows
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 18 Jun 2025 18:57:34 -0600 |
parents | 7db13b68ab1b |
children |
line wrap: on
line source
#!/bin/bash set -e if ! JAVA_HOME=$(/usr/libexec/java_home -v 1.8); then URL="https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html" osascript -e "display dialog \"Luan Editor requires JDK 8. Please install it from:\n\n$URL\" buttons {\"OK\"}" open "$URL" exit 1 fi JAVA_BIN="$JAVA_HOME/bin/java" DIR="$(cd "$(dirname "$0")/../Resources" && pwd)" DICTIONARIES="$DIR/dictionaries/" for i in "$DIR"/jars/* ; do CLASSPATH="$CLASSPATH:$i" ; done mkdir -p ~/.luan_editor $JAVA_BIN -Ddictionaries="$DICTIONARIES" -Xdock:name="Luan Editor" -classpath "$CLASSPATH" luan.Luan classpath:luan_editor/editor.luan 2>&1 | grep --line-buffered -v 'NSRemoteView\|NSSavePanel' >~/.luan_editor/error.log exit ${PIPESTATUS[0]}