Building XUI on OS X from the source
I’ve been using XUI for a while now and figured I would get stuck in with contributing, but not having seen JS source like this before actually getting the js file out of the source wasn’t as easy as I thought.
For those that are still struggling.
First you need to open the terminal and go to a directory of your choice.
$ cd /repos
Next clone the git repository
$ git clone git clone git://github.com/brianleroux/xui.git
Change to the newely created git repository
$ cd xui
Now this is what got me stuck if you run rake now, just like the readme file suggests you will get an error similiar to below
No such file or directory - /Library/WebServer/Documents/repos/xui/packages/emile/emile.js
To rectify this you need to run the commands below to initiate the submodules.
$ git submodule init $ git submodule update
That will ensure you have a full git repository of XUI with the submodule repositories as well. The last thing you need to do to get a clean build is download Webkit and make sure its in your applications folder. When you run rake Webkit is used to run some automated tests of your built JS files.
Lastly then make sure your in the main project directory and run.
$ rake