2016-09-16 09:52:57 -05:00
# RetroArch Web Player
2018-09-30 20:23:05 -04:00
The RetroArch Web Player is RetroArch compiled through [Emscripten ](http://kripken.github.io/emscripten-site/ ). The following outlines how to compile RetroArch using Emscripten, and running it in your browser.
## Compiling
To compile RetroArch with Emscripten, you'll first have to [download and install the Emscripten SDK ](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html ). Once it's loaded in your shell, you'll run something like the following...
```
mkdir ~/retroarch
cd ~/retroarch
git clone https://github.com/libretro/libretro-fceumm.git
cd libretro-fceumm
emmake make -f Makefile.libretro platform=emscripten
git clone https://github.com/libretro/RetroArch.git ~/retroarch/RetroArch
cp ~/retroarch/libretro-fceumm/fceumm_libretro_emscripten.bc ~/retroarch/RetroArch/dist-scripts/fceumm_libretro_emscripten.bc
cd ~/retroarch/RetroArch/dist-scripts
emmake ./dist-cores.sh emscripten
```
## Usage
2016-09-16 09:52:57 -05:00
Most of the magic happens on the browser so nothing really on that regard
I you want a self hosted version you need
2018-02-06 22:37:07 -05:00
- A web server, nginx/apache will do, download a build here:
2016-09-16 09:52:57 -05:00
https://buildbot.libretro.com/nightly/emscripten/
2018-08-11 18:44:28 +02:00
- Extract the build somewhere in your web-server
2018-02-06 22:37:07 -05:00
- Grab the asset bundle:
https://buildbot.libretro.com/assets/frontend/bundle.zip
- Unzip it in the same dir you extracted the rest, inside ** /assets/frontend/bundle**
- Create an **assets/cores** dir, you can put game data in that dir so it's available under **downloads**
- chmod +x the indexer script
2018-11-10 14:44:46 +01:00
- run the indexer script (you need coffeescript) like this:
```
cd ${ROOT_WWW_PATH}/assets/frontend/bundle
../../../indexer > .index-xhr
cd ${ROOT_WWW_PATH}/assets/cores
../../indexer > .index-xhr
```
2016-09-16 09:52:57 -05:00
2018-02-06 22:37:07 -05:00
That should be it, you can add more cores to the list by editing index.html