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

Commit

Permalink
Merge pull request #275 from timburgess/linux_setup
Browse files Browse the repository at this point in the history
Linux setup changes
  • Loading branch information
jasonsanjose committed Jul 11, 2013
2 parents b99e9c6 + a1360c7 commit 1a62156
Showing 1 changed file with 43 additions and 7 deletions.
50 changes: 43 additions & 7 deletions scripts/setup_linux_build.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,52 @@
#!/bin/bash

MACHINE_TYPE=`uname -m`

# SYSTEM DEPENDENCIES
# install development dependencies
sudo apt-get install --assume-yes p7zip-full libnss3-1d libnspr4-0d gyp gtk+-2.0
sudo apt-get install --assume-yes wget p7zip-full libnss3-1d libnspr4-0d gyp gtk+-2.0

# BUILD DEPENDENCIES
# download CEF
zipname="cef_binary_3.1453.1255_linux32"

mkdir deps
pushd deps
mkdir downloads
pushd downloads


# download Adobe CEF build
ZIPNAME="cef_binary_3.1453.1255_linux32"

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

# extract CEF
rm -rf cef
rm -rf ../deps/cef
7za x cef.7z
mv $zipname cef
mv $ZIPNAME ../deps/cef

# if 64bit platform, pull down 64bit CEF client and use 64bit CEF library.
# As www.magpcss.net/cef-downalds requires CAPTCHA, this will need to be done manually
#
#if [ ${MACHINE_TYPE} == 'x86_64' ]; then
# 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"
#
#fi

# download node binary

if [ ${MACHINE_TYPE} == 'x86_64' ]; then
NODE_FILE='node-v0.8.20-linux-x64'
else
NODE_FILE='node-v0.8.20-linux-x86'
fi
wget "http://nodejs.org/dist/v0.8.20/$NODE_FILE.tar.gz"
tar xvzf $NODE_FILE.tar.gz
mv $NODE_FILE ../deps/node

popd


# make symlinks to CEF
# Remove existing links
rm -f Debug include libcef_dll Release Resources tools
Expand All @@ -38,4 +63,15 @@ ln -s deps/cef/Resources/ Resources
# copy appshell.gyp
cp appshell.gyp.txt appshell.gyp

gyp --depth .
gyp --depth .


# NB - After this script has completed successfully,
#
# - if 64bit, replace deps/cef/libcef.so with the 64bit libcef.so in the linux 64bit client.7z
# - in the brackets-shell directory, run 'make'
# - there should be a binary named 'Brackets' in out/Release. In the same directory, add
# symlinks to allow the appshell to find the cloned brackets directory
#
# ln -s /path/to/brackets dev
# ln -s /path/to/brackets/samples .

0 comments on commit 1a62156

Please sign in to comment.