Merge pull request +12464 from c9/pull/core/258

Pull/core/258
This commit is contained in:
Harutyun Amirjanyan 2016-02-26 23:28:24 +04:00
commit 57a9656325
2 changed files with 24 additions and 0 deletions

BIN
build/linux/c9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -37,6 +37,30 @@ SOURCE=`pwd`
LOCAL=$SOURCE/local
APPDIR=$SOURCE/build/webkitbuilds/app.nw
if [ "$os" == "linux" ]; then
if [ ! -d $SOURCE/build/webkitbuilds/cache/linux/0.12.3 ]; then
mkdir -p $SOURCE/build/webkitbuilds/cache/linux/0.12.3/
pushd $SOURCE/build/webkitbuilds/cache/linux/0.12.3
wget http://dl.nwjs.io/v0.12.3/nwjs-v0.12.3-linux-x64.tar.gz
tar -zxf nwjs-v0.12.3-linux-x64.tar.gz
popd
fi
DEST="$SOURCE/build/Cloud9-dev-linux"
rm -rf "$DEST"
mkdir -p $DEST
cp -R $SOURCE/build/webkitbuilds/cache/linux/0.12.3/nwjs-v0.12.3-linux-x64/* $DEST
cp $SOURCE/build/linux/c9.png $DEST/icon.png
node --eval "
var path = require('path')
var p = require('./local/package.json');
p.main = path.relative('$DEST', '$SOURCE/local/projectManager.html');
delete p.dependencies;
p.window.icon = 'icon.png';
console.log(JSON.stringify(p, null, 2));
" > $DEST/package.json
fi
if [ "$os" == "darwin" ]; then
if [ ! -d $SOURCE/build/webkitbuilds/cache/mac/0.9.3 ]; then