Skip to content

Instantly share code, notes, and snippets.

@sgk
Last active December 13, 2017 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgk/694d15c0898bda27525f6dfd07775dc7 to your computer and use it in GitHub Desktop.
Save sgk/694d15c0898bda27525f6dfd07775dc7 to your computer and use it in GitHub Desktop.
Build PXT/CircuitPlayground on Ubuntu 16.04
#!/bin/bash
# for Ubuntu 16.04
sudo apt install nodeenv python-virtualenv gcc-arm-none-eabi srecord cmake ninja-build libgnome-keyring-dev
mkdir adafruit
cd adafruit
nodeenv --node=6.11.5 --prebuilt node
. node/bin/activate
npm install -g jake typings
virtualenv python
. python/bin/activate
pip install pyopenssl yotta
git clone https://github.com/Microsoft/pxt
git clone https://github.com/Microsoft/pxt-common-packages
git clone https://github.com/Microsoft/pxt-adafruit
(
cd pxt
typings install
npm install
npm install -g pxt
jake
)
(
cd pxt-common-packages
npm install
npm link ../pxt
)
(
cd pxt-adafruit
npm install
npm link ../pxt
npm link ../pxt-common-packages
)
(
cd pxt-adafruit
yotta login
yotta login --github
pxt serve
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment