Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

[Build] Mac OSX

Arturo Rinaldi edited this page Jan 9, 2016 · 13 revisions

How to build

So, for starters, assuming that your folder where all the three main repositories have been cloned into is WORK_FOLDER, then follow these steps :

$ cd $WORK_FOLDER
$ cd ArduinoStudio/
$ npm install --build-from-source
$ cp -r node_modules/grunt-contrib-jasmine .grunt
$ grunt build

and please sure you don't get any error during the whole process since this is the first code assembly you will be needing in the next step. Once done, switch to the brackets-shell folder :

cd ../brackets-shell

and then run :

$ npm install --build-from-source
$ grunt setup
$ grunt full-build

once the build has finished, you will find the skeleton of your new .app in this folder :

$BRACKETS_SHELL_FOLDER/installer/staging/mac/ArduinoStudio.app

At this point, you just miss the final piece to complete the whole process. This last one is the ArduinoStudio Extension and you will easily build it by means of a BASH shell script which will take care of everything needed (toolchains, additional tools and so on). So, switch back to the main work folder with :

$ cd $WORK_FOLDER

then download the script here and grant it execution permissions with

$ chmod +x arduino_brackets_ext.sh

and then run it with

./arduino_brackets_ext.sh

at the end of the whole process, a compressed ZIP will be generated in the very same folder and named as :

ArduinoStudioExt-X.Y.Z.-mac32.zip

where X.Y.Z. is the current version of the extension itself, which is usually "tuned" to the ones of ArduinoStudio and brackets-shell. It's now time to put together all the "puzzle pieces" so, run from shell these commands 👍

$ unzip ArduinoStudioExt-X.Y.Z.-mac32.zip -d brackets-shell/installer/staging/ArduinoStudio.app/www/extensions/default

will extract the freshly built extensions in the default extesions folder of the main app skeleton. At the end, just move the complete bundle into the main Applications folder with 👍

$ sudo mv brackets-shell/installer/staging/ArduinoStudio.app /Applications

create a symbolic link in your OSX desktop dock dragging the application on it and then run it ! Congratulations, you're now ready to deploy software with ArduinoStudio !

How to clean

If something goes wrong or if you just want to, you can always start from scratch by following these simple steps :

  • Clean ArduinoStudio build :
$ cd ArduinoStudio/
$ grunt clean
  • Clean brackets-shell build :
$ cd brackets-shell/
$ grunt clean
$ grunt cef-clean
$ grunt node-clean
$ rm -rf node_modules

Clone this wiki locally