Skip to content

How To Build For OS X

Ben Baron edited this page Jul 27, 2013 · 2 revisions

###Jul 26, 2013

Server

  1. Install Mono from here: http://download.mono-project.com/archive/3.1.2/macos-10-x86/MonoFramework-MDK-3.1.2.macos10.xamarin.x86.pkg

(all of the below are commands run in the Terminal app, as regular user, not sudo)

  1. Clone the WaveBox repo to your home directory: cd ~ && git clone https://github.com/einsteinx2/WaveBox.git

  2. Build WaveBox: cd ~/WaveBox && xbuild

  3. To enable transcoding, download and place the ffmpeg binary: cd /tmp && wget https://s3-us-west-2.amazonaws.com/com.einsteinx2.wavebox/ffmpeg_osx.zip && mv ffmpeg ~/WaveBox/WaveBox.Server/bin/Debug/

Web interface

  1. Clone the web repo into the themes directory: git clone https://github.com/einsteinx2/WaveBoxWebClient.git ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave

  2. Install nodejs from here: http://nodejs.org/

  3. Install the coffeescript build tools like so: cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && sudo npm install -g NOTE: If this fails, try running sudo npm install -g coffee-script browserify

  4. Build the web interface: cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && cake build

  5. Open the web interface by navigating to http://localhost:6500

Run WaveBox

cd ~/WaveBox/WaveBox.Server/bin/Debug && mono --debug WaveBox.exe

Or to start it up to run in the background (terminal output appended to nohup.log in the Debug folder, which you can read in real time using tail -f nohup.log): cd ~/WaveBox/WaveBox.Server/bin/Debug && nohup mono --debug WaveBox.exe &

Updates

Now any time you want to update WaveBox, do the following and then restart WaveBox: cd ~/WaveBox && git checkout . && git pull && xbuild

Any time you want to update the web interface do the following: cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && git checkout . && git pull && cake build

Clone this wiki locally