-
Notifications
You must be signed in to change notification settings - Fork 12
How To Build For OS X
###Jul 26, 2013
- 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)
-
Clone the WaveBox repo to your home directory:
cd ~ && git clone https://github.com/einsteinx2/WaveBox.git
-
Build WaveBox:
cd ~/WaveBox && xbuild
-
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/
-
Clone the web repo into the themes directory:
git clone https://github.com/einsteinx2/WaveBoxWebClient.git ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave
-
Install nodejs from here: http://nodejs.org/
-
Install the coffeescript build tools like so:
cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && sudo npm install -g
NOTE: If this fails, try runningsudo npm install -g coffee-script browserify
-
Build the web interface:
cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && cake build
-
Open the web interface by navigating to http://localhost:6500
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 &
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