Install simulator (for Mac)
-
Open terminal
-
Install homebrew (visit this site for latest install info: http://brew.sh/)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Use homebrew to install git
brew install git
- Use home-brew to install node
brew install node
- Install gaia-develop (thanks to developer Yifan for this package)
npm install -g gaia-develop
- git clone gaia (you can change the directory)
git clone https://github.com/mozilla-b2g/gaia
- Download and install Firefox Nightly, named b2g-xxxxxxxxxx-US.mac64.dmg, at:
http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central
Open simulator
- Open gaia folder (if you changed the directory in step 5, open corresponding directory)
cd ~/gaia
- Pull latest code & open simulator
git pull origin master; gaia-develop tv
Function keys
- Back (TV) = ESC (laptop)
- Home (TV) = (1) home button at bottom, or (2) "fn" + "←"
- Option (TV) = (1) right click on mouse, or (2) "double click" on touch-pad