Last active
December 13, 2017 02:27
-
-
Save sgk/694d15c0898bda27525f6dfd07775dc7 to your computer and use it in GitHub Desktop.
Build PXT/CircuitPlayground on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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