Mercurial Hosting > editor
comparison 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 |
comparison
equal
deleted
inserted
replaced
59:824f6d74b1d4 | 60:855669ece914 |
---|---|
1 #!/bin/bash | |
2 set -e | |
3 | |
4 cd "$(dirname $0)/.." | |
5 | |
6 mkdir -p /usr/local/bin | |
7 | |
8 cat >/usr/local/bin/luan_editor <<End | |
9 #!/bin/bash | |
10 set -e | |
11 | |
12 export DICTIONARIES="$(pwd)/dictionaries/" | |
13 | |
14 for i in "$(pwd)"/jars/* ; do CLASSPATH="\$CLASSPATH:\$i" ; done | |
15 | |
16 mkdir -p ~/.luan_editor | |
17 | |
18 set +m | |
19 | |
20 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 & | |
21 End | |
22 | |
23 chmod +x /usr/local/bin/luan_editor | |
24 | |
25 echo "the command 'luan_editor' has been installed" |