Update README.md

This commit is contained in:
Andrés 2018-02-06 22:37:07 -05:00 committed by GitHub
parent 7ca6538095
commit 408cfd66d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,48 +4,16 @@
Most of the magic happens on the browser so nothing really on that regard
I you want a self hosted version you need
- A web server, nginx/apache will do, unzip a nightly here:
- A web server, nginx/apache will do, download a build here:
https://buildbot.libretro.com/nightly/emscripten/
- Move the template files from the embed folder to the top level dir,
the other templates are for specific sites
- A SSL certificate if you want to integrate with dropbox
- A dropbox application, you can't use ours on a self hosted version
- Extract the build somewher ein your web-server
- 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
- run the indexer script (you need coffeescript) like this: ./indexer ./assets/frontend > ./assets/frontend/.index-xhr
- run the indexer script (you need coffeescript) like this: ./indexer ./assets/cores > ./assets/cores/.index-xhr
If you want assets for XMB, shaders, overlays you need to do the following:
- Grab the asset bundle:
https://bot.libretro.com/assets/frontend/bundle.zip
- Unzip it somewhere in your web server
- Generate an index of the folder with this script, save it inside the folder you want to serve
https://github.com/jvilk/BrowserFS/blob/master/tools/XHRIndexer.coffee
- Add the mount in the setupFileSystem function, look for the xfs blocks and
unconmment them and tweak them accordingly
That should be it, you can add more cores to the list by editing index.html
If you want to add your game directory so it serves content to your users you
need to do the following:
- Add the dir to your web server
- Generate an index with this script, save it inside the folder you want to serve
https://github.com/jvilk/BrowserFS/blob/master/tools/XHRIndexer.coffee
- Add a new mount in the setupFileSystem function, look for the xfs blocks and
unconmment them and tweak them accordingly
```javascript
/* create an XmlHttpRequest filesystem for the bundled data */
/* --> uncomment this if you want builtin assets for XMB, overlays, etc.*/
var xfs1 = new BrowserFS.FileSystem.XmlHttpRequest
("--your-assets-index-file-name--", "--your-index-url--");
/* create an XmlHttpRequest filesystem for content */
/* --> uncomment this if you want to serve content.*/
var xfs2 = new BrowserFS.FileSystem.XmlHttpRequest
("--your-content-index-file-name--", "--your-index-url--");
// lots and lots of code
// and then
/*
mfs.mount('/home/web_user/retroarch/bundle', xfs1);
mfs.mount('/home/web_user/retroarch/userdata/content/', xfs2);
*/
}
```