Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 22c66b2

Browse files
committed
Merge pull request #275 from timburgess/linux_setup
Linux setup changes
2 parents 96a0992 + 827d34c commit 22c66b2

1 file changed

Lines changed: 43 additions & 7 deletions

File tree

scripts/setup_linux_build.sh

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,52 @@
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

1111
mkdir 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

1419
if [ ! -f cef.zip ]; then
1520
wget -O cef.7z "https://drive.google.com/uc?export=download&id=0B7as0diokeHxMVpTOTM5NUJwemM"
1621
fi
1722

1823
# extract CEF
19-
rm -rf cef
24+
rm -rf ../deps/cef
2025
7za 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

2347
popd
2448

49+
2550
# make symlinks to CEF
2651
# Remove existing links
2752
rm -f Debug include libcef_dll Release Resources tools
@@ -38,4 +63,15 @@ ln -s deps/cef/Resources/ Resources
3863
# copy appshell.gyp
3964
cp 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

Comments
 (0)