Skip to content

Updating the HappyBrackets Developer Kit

angelofraietta edited this page Apr 20, 2018 · 3 revisions

Instead of downloading and opening a new version of the HappyBrackets developer kit, a script has been provided to allow you to automatically update your existing HappyBrackets Developer kit with the latest version.

The procedure is in three steps 1 - Run the script that downloads the new Developer Kit 2 - Install the new IntelliJ HappyBrackets plugin 3 - Download new JAR files and scripts to PI

Step 1 requires Internet access, while step 3 requires access to the network the PIs are one.

#Updating from HappyBrackets project You can update the HappyBrackets SDK by running the update-developer-kit script in the config folder of the IntelliJ HappyBrackets Project. If you do not have the script in your project, you will need to download and run the script.

##Downloading and running the update-developer-kit script If your version of the HappyBrackets Project does not have the update script, follow these steps to update your Kit.

##Download the script to your computer Open a terminal and navigate to the HappyBrackets developer Kit folder. Executing the ls command should display similar to below.

Angelos-MacBook-Pro:HappyBrackets Developer Kit angelo$ ls
Device					_README.txt
HappyBrackets Project			
HappyBrackets_IntelliJ_Plugin.zip	

You need to download update-package.sh to the base folder of your HappyBrackets Developer Kit. Your folder should now look like this

Angelos-MacBook-Pro:HappyBrackets Developer Kit angelo$ ls
Device					_README.txt
HappyBrackets Project			clean.sh
HappyBrackets_IntelliJ_Plugin.zip	update-package.sh

Make the update-package file executable by running the command chmod a+x update-package.sh

Run the script ./update-package.sh

The new HappyBrackets Developer Kit will overwrite the files in your existing version, but will leave any that you have created intact.

##Update IntelliJ Plugin Close any open IntelliJ projects Install the new plugin. The steps are detailed in Install HappyBrackets Plugin Wiki

##Update JARs and scripts on device. Open The HappyBrackets project in IntelliJ Make sure you have a valid connection with your PI. In the device panel, copy the device address to the clipboard

Run the update-developer-kit script from the config folder. Enter the device name from previous step and press return. Enter password when prompted (default password is raspberry). The device will then reboot.

When the device reboots, it will have the latest version of HappyBrackets on it.

Clone this wiki locally