Skip to content

Commit fe872a1

Browse files
authored
Merge pull request #57 from cianoc/mac-install
Added information on how to build a local application for Lem on Mac
2 parents 8b3d0d6 + 33cae96 commit fe872a1

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

content/en/installation/sdl2/macos.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,30 @@ or run `make sdl2-ncurses` to build Lem with the two interfaces in it. Then choo
5454
export PATH="$HOME/common-lisp/lem:$PATH"
5555
```
5656

57-
#### Keyboard Layout
57+
### Make it an Application
58+
To create an executable that you can run as a GUI you will need to use Automator.
59+
60+
- Launch Automator
61+
- Choose 'Application' as the type for your document
62+
63+
You should now see three columns. In the second column there will be a collection of actions
64+
that you can run in this 'application'. Scroll down until you see `Run Shell Script`. Double click
65+
on this and on the right you should now see a text box where you can enter your script:
66+
67+
Replace the contents of this shell script with the following:
68+
69+
```zsh
70+
source ~/.zshrc
71+
cd ~/common-lisp/lem
72+
./lem -i sdl2 &
73+
exit 0
74+
```
75+
76+
Save this as an application (this should be the default) with the name `Lem` to `\Applications`.
77+
78+
You should now be abel to run this as an application from the Applications folder.
79+
80+
### Keyboard Layout
5881

5982
If your keyboard is a JIS layout, you need to put the following settings in `$HOME/.lem/init.lisp`
6083

0 commit comments

Comments
 (0)