How To Build For Windows - einsteinx2/WaveBox GitHub Wiki

###Jul 26, 2013

Server

  1. Install the latest version of Git for Windows from here: https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git

  2. Install Microsoft .NET 4.5 from here: https://www.microsoft.com/en-us/download/details.aspx?id=30653

  3. Install GTK# from here: http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.21.msi

  4. Install Xamarin Studio from here (it says MonoDevelop, but it will download Xamarin): http://monodevelop.com

  5. Open Git Bash from the start menu and clone the WaveBox repo to your home directory using this command: cd ~ && git clone https://github.com/einsteinx2/WaveBox.git NOTE: To paste in Git Bash, right click on the title bar, and go to Edit > Paste in the menu

  6. Open Xamarin Studio and open the WaveBox project (it will be in your home directory, WaveBox, WaveBox.sln)

  7. Build WaveBox by pressing F8 or choosing Build > Build All from the top menu, then make sure to delete the WaveBox.exe.config file from the WaveBox/WaveBox.Server/bin/Debug folder, and move sqlite.dll from WaveBox/WaveBox.Server/bin/Debug/lib_native to WaveBox/WaveBox.Server/bin/Debug

  8. To enable transcoding, download this zip file, unzip it, and place the ffmpeg.exe file into the WaveBox/WaveBox.Server/bin/Debug folder: https://s3-us-west-2.amazonaws.com/com.einsteinx2.wavebox/ffmpeg_windows.zip

  9. Soon WaveBox will work as a Windows service, but until then, open Git Bash and run the following: cd ~/WaveBox/WaveBox.Server/bin/Debug && ./WaveBox.exe

Web interface

  1. Open Git Bash and 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. Close and then re-open Git Bash and install the coffeescript build tools like so: cd ~/WaveBox/WaveBox.Server/bin/Debug/themes/wave && npm install -g coffee-script browserify && npm install which

  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

Updates

Now any time you want to update WaveBox, do the following in Git Bash and then re-build with Xamarin Studio and delete the WaveBox.exe.config file from the Debug directory: cd ~/WaveBox && git checkout . && git pull

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