Skip to content

Instantly share code, notes, and snippets.

@arraez
Forked from jasonsanjose/README.md
Last active December 22, 2015 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arraez/6490067 to your computer and use it in GitHub Desktop.
Save arraez/6490067 to your computer and use it in GitHub Desktop.
IMHO, for Fedora (f19 tested, ok).

In a new directory the following script will:

  • Clone brackets-shell and brackets git respositories.
  • Download required dependencies.
  • Config and Run.
$ mkdir -p <path-to-new-directory>
$ cd <path-to-new-directory>
$ wget https://gist.github.com/arraez/6490067/raw/c97a639ff9de805b81b882b81b89a5c6fef29edd/setup_fedora.sh
$ chmod +x setup_fedora.sh
$ ./setup_fedota.sh; rm setup_fedora.sh

···

$ <path-to-new-directory>/runme

Based on https://gist.github.com/jasonsanjose/5514813/

#!/bin/bash
#
# Based on https://github.com/adobe/brackets/wiki/Linux-Version
# and https://gist.github.com/jasonsanjose/5514813/raw/6215f3b73ff41f51e20bc94a9faa3e453402ce06/setup.sh
GITHUB_URL="https://github.com"
GITHUB_ADOBE=$GITHUB_URL/adobe
BRACKETS_RUN=BRACKETS-shell.run
BRACKETS_DBG=BRACKETS-shell.DBG
# install git, nodejs and grunt-cli
sudo yum install git nodejs
sudo npm install -g grunt-cli
function clone_and_config {
GITHUB_REPO=$GITHUB_ADOBE/$1.git
# clone
git clone $GITHUB_REPO
pushd $1
# update submodules
git submodule sync
git submodule update --init --recursive
popd
}
clone_and_config brackets
clone_and_config brackets-shell
pushd brackets-shell
sudo npm install
grunt
grunt build
popd
BRACKETS_PWD=$(pwd)
BRACKETS_DIR=$BRACKETS_PWD/brackets
BRACKETS_REL=$BRACKETS_PWD/brackets-shell/out/Release
BRACKETS_DEV=$BRACKETS_REL/dev
if [ -L $BRACKETS_DEV ]; then
rm -rf $BRACKETS_DEV
fi
ln -s $BRACKETS_DIR $BRACKETS_DEV
BRACKETS_RUN=runme
if [ -L $BRACKETS_RUN ]; then
rm -rf $BRACKETS_RUN
fi
ln -s $BRACKETS_REL/Brackets $BRACKETS_RUN
./$BRACKETS_RUN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment