11#! /bin/bash
22
3+ MACHINE_TYPE=` uname -m`
4+
35# SYSTEM DEPENDENCIES
46# install development dependencies
5- sudo apt-get install --assume-yes p7zip-full libnss3-1d libnspr4-0d gyp gtk+-2.0
7+ sudo apt-get install --assume-yes wget p7zip-full libnss3-1d libnspr4-0d gyp gtk+-2.0
68
79# BUILD DEPENDENCIES
8- # download CEF
9- zipname=" cef_binary_3.1453.1255_linux32"
1010
1111mkdir deps
12- pushd deps
12+ mkdir downloads
13+ pushd downloads
14+
15+
16+ # download Adobe CEF build
17+ ZIPNAME=" cef_binary_3.1453.1255_linux32"
1318
1419if [ ! -f cef.zip ]; then
1520 wget -O cef.7z " https://drive.google.com/uc?export=download&id=0B7as0diokeHxMVpTOTM5NUJwemM"
1621fi
1722
1823# extract CEF
19- rm -rf cef
24+ rm -rf ../deps/ cef
20257za x cef.7z
21- mv $zipname cef
26+ mv $ZIPNAME ../deps/cef
27+
28+ # if 64bit platform, pull down 64bit CEF client and use 64bit CEF library.
29+ # As www.magpcss.net/cef-downalds requires CAPTCHA, this will need to be done manually
30+ #
31+ # if [ ${MACHINE_TYPE} == 'x86_64' ]; then
32+ # wget -O cef_binary_3.1453.1255_linux64_client.7z "http://www.magpcss.net/cef-downloads/index.php?file=cef_binary_3.1453.1255_linux64_client.7z"
33+ #
34+ # fi
35+
36+ # download node binary
37+
38+ if [ ${MACHINE_TYPE} == ' x86_64' ]; then
39+ NODE_FILE=' node-v0.8.20-linux-x64'
40+ else
41+ NODE_FILE=' node-v0.8.20-linux-x86'
42+ fi
43+ wget " http://nodejs.org/dist/v0.8.20/$NODE_FILE .tar.gz"
44+ tar xvzf $NODE_FILE .tar.gz
45+ mv $NODE_FILE ../deps/node
2246
2347popd
2448
49+
2550# make symlinks to CEF
2651# Remove existing links
2752rm -f Debug include libcef_dll Release Resources tools
@@ -38,4 +63,15 @@ ln -s deps/cef/Resources/ Resources
3863# copy appshell.gyp
3964cp appshell.gyp.txt appshell.gyp
4065
41- gyp --depth .
66+ gyp --depth .
67+
68+
69+ # NB - After this script has completed successfully,
70+ #
71+ # - if 64bit, replace deps/cef/libcef.so with the 64bit libcef.so in the linux 64bit client.7z
72+ # - in the brackets-shell directory, run 'make'
73+ # - there should be a binary named 'Brackets' in out/Release. In the same directory, add
74+ # symlinks to allow the appshell to find the cloned brackets directory
75+ #
76+ # ln -s /path/to/brackets dev
77+ # ln -s /path/to/brackets/samples .
0 commit comments