Jak vyzkoušet Firefox OS na svém počítači
Informace o revizi
- Id revize: 54127
- Vytvořeno:
- Vytvořil(a): Michal Stanke
- Komentář: překlad první části = Použití doplňku Firefox OS Simulator
- Zkontrolováno: Ne
- Připraveno na lokalizaci: Ne
Zdroj revize
Obsah revize
Používání Firefox OS Simulátoru může být velmi užitečné pro všechny vývojáře a autory i zájemce, kteří chtějí zjistit, jaký je to pocit pracovat s Firefox OS.
Obsah
Použití doplňku Firefox OS Simulator (doporučené)
Použití doplňku pro prohlížeč Firefox je nejrychlejší a nejsnazší cestou, jak vyzkoušet Firefox OS za méně než minutu. A to na Windows, Mac OS i Linuxu.
Instalace Firefox OS Simulator
Pro spuštění Firefox OS Simulátoru prosím následujte těchto několik jednoduchých kroků:
- Otevřete svůj prohlížeč Firefox.
- Otevřete tento odkaz pro stažení Firefox OS Simulátoru.
- Klepněte na tlačítko . Firefox stáhne požadovaný doplněk a požádá o potvrzení jeho instalace.
- Pro potvrzení klepněte na tlačítko .
Spuštění Firefox OS Simulátoru
- V horní části okna Firefoxu klepněte na tlačítko ,V horní části okna Firefoxu vyberte nabídku ,V horní části okna Firefoxu vyberte nabídku (v Ubuntu v liště nabídky klepněte na ),V liště nabídky klepněte na nabídku pokračujte do , , kde klepněte na .
- V levé části okna simulátoru klepněte na přepínač
, tím dojde k jeho přepnutí na .
- Simulátor se spustí a můžete si začít hrát s Firefox OS!Tip: Použijte klávesu nebo pro simulování domovského tlačítka na zařízení. +
Pokud z nějakého důvodu nebude doplněk Firefox OS Simulator fungovat, můžete provést ruční instalaci simulátoru následujícím postupem.
Manually installing the Firefox OS Simulator
Here's how to get Firefox OS running on your desktop computer by manually compiling and installing and compiling it. These instructions are based on those by Staś Małolepszy. For more info, see his blog post. For more up-to-date instructions, check the Building and Installing Firefox OS page on the Mozilla Developer Network pages.
Prepare your computer
If you don't have these things already installed, you'll need to do this before you can get Firefox OS running.
- Install XCode from the Mac App store.
- Once it's "installed" from the App store, open the app to finish the installation.
- Then, open the XCode preferences and install the Command Line Tools.
- Finally, download and install Git from http://git-scm.com/downloads
Get the Boot2Gecko app
- Download the latest nightly build from ftp.mozilla.org. You want the latest mac64.dmg file.
- Double-click the .dmg file you just downloaded to open it and then drag the B2G.app to your Applications folder.
Get Gaia
- First, create a folder to hold everything. For these instructions, we'll create a "FirefoxOS" folder in your Documents folder.
- Open up the Terminal application. You automatically start in your Home folder (username:~).
- In the Terminal window, switch to the FirefoxOS folder you created in step 1 by typing, cd Documents/FirefoxOS and then hit
- Next, clone the Gaia repository (in English that means, download a copy to your computer) by typing, git clone https://github.com/mozilla-b2g/gaia gaia and then hit Tip: You can copy and paste commands from this article into your Terminal.
- A bunch of stuff will happen and you'll see a download progress. When everything is done and you have a prompt again (username:FirefoxOS username$), continue with the next step.
. - Now you need to create a profile by typing, DEBUG=1 make -C gaia profile and then hit
- Again, a bunch of stuff will happen. When you have a prompt again you'll be done.
.
Start Firefox OS
- To start Firefox OS, open the Terminal and type, /Applications/B2G.app/Contents/MacOS/b2g -profile ~/Documents/FirefoxOS/gaia/profile and hit Note: Use theor + buttons on your keyboard to simulate the home button on the device. .
Update
This desktop version doesn't auto-update. To update it manually:
- Download and install the latest nightly build from ftp.mozilla.org.
- Open the Terminal, navigate to the gaia folder inside the FirefoxOS folder by typing, cd ~/Documents/FirefoxOS/gaia
- Then type, git pull
Get the Boot2Gecko app
- Download the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86).
- Start the installer and follow the instructions.
- Download the pre-built installer for b2g-desktop with pre-compiled gaia.
- Start the installer and follow the instructions. Be sure to leave the two checkboxes checked.
Start Firefox OS
Simply click the
application shortcut from the Windows Start menu to launch Firefox OS.Auto update
This pre-built installer includes an automatic update feature. The second time you launch the app, it will check for updates and ask you if you want to upgrade. Simply click
and follow the instructions. The installer will detect your previous install and ask to remove it before upgrading -- say to that too.