Mercurial Hosting > editor
diff scripts/mac/install.sh @ 60:855669ece914
start mac installer
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 04 Jun 2025 22:24:57 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/mac/install.sh Wed Jun 04 22:24:57 2025 -0600 @@ -0,0 +1,25 @@ +#!/bin/bash +set -e + +cd "$(dirname $0)/.." + +mkdir -p /usr/local/bin + +cat >/usr/local/bin/luan_editor <<End +#!/bin/bash +set -e + +export DICTIONARIES="$(pwd)/dictionaries/" + +for i in "$(pwd)"/jars/* ; do CLASSPATH="\$CLASSPATH:\$i" ; done + +mkdir -p ~/.luan_editor + +set +m + +java -Xdock:name="Luan Editor" -Duser.home="\$HOME" -classpath "\$CLASSPATH" luan.Luan classpath:luan_editor/editor.luan "\$@" 2>&1 | grep --line-buffered -v 'NSRemoteView\|NSSavePanel' | tee ~/.luan_editor/error.log & +End + +chmod +x /usr/local/bin/luan_editor + +echo "the command 'luan_editor' has been installed"