Due to there size, the sonic pi binaries that are required are not included in the repository. In order to get these, first install sonic pi on your machine (a windows installer is available on the sonic pi website). Note that this has been tested with version 2.11.1
once installed, go to the Sonic Pi installation directory (typically C:\Program Files (x86)\Sonic Pi) and you will find two directories:
app
etc
Create the following directory (relative to your project root) and copy the app and etc directories in there:
.\bin\sonicpi\win
So after this is done, you should have the following directires
.\bin\sonicpi\win\app
.\bin\sonicpi\win\etc
As a final check, confirm that the following files exist
.\bin\sonicpi\win\app\server\bin\sonic-pi-server.rb
.\bin\sonicpi\win\app\server\native\win\ruby\bin\ruby.exe
Building the application requires a NodeJS/NPM installation. Once this is installed, go to the root directory and build the app using npm
npm install
Once built, launch the application with
npm start
If you encounter problems due to compatibility problems with the nodejs and electron verions, force a rebuild using
.\node_modules\.bin\electron-rebuild.cmd
Install dependencies:
npm install -g gulp
npm install
To run tests:
# Test everything
npm test
# Test SonicPi blocks
npm run test:sonicpi
# Test electron
npm run test:electron