forked from LightTable/LightTable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosx_deps.sh
29 lines (24 loc) · 824 Bytes
/
osx_deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Check if lein is installed
lein version >/dev/null 2>&1 || { echo >&2 "Please install leiningen before running this script."; exit 1; }
#get the LightTable.app binary
curl -O http://d35ac8ww5dfjyg.cloudfront.net/playground/bins/0.6.0/LightTableMac.zip
unzip LightTableMac.zip
mv LightTable/* deploy/
rmdir LightTable/
rm LightTableMac.zip
#build the core cljs of LightTable
lein cljsbuild clean && lein cljsbuild once
#Get the plugins from the binary
cd deploy
mv LightTable.app/Contents/Resources/app.nw/plugins plugins
cd plugins
#Make sure we have the latest clojure
rm -rf clojure
git clone https://github.com/LightTable/Clojure.git clojure
cd clojure
./build.sh
#Remove the app.nw so we use our local copy
cd ../../
rm -rf LightTable.app/Contents/Resources/app.nw
#Set this as home and run
export LT_HOME=$(pwd)