Last active
December 13, 2017 02:26
-
-
Save sgk/d220104f1897301f57049f7e5e18f1eb to your computer and use it in GitHub Desktop.
Built PXT/micro:bit 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 microbit | |
cd microbit | |
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 [email protected]:Microsoft/pxt.git | |
git clone [email protected]:Microsoft/pxt-microbit.git | |
( | |
cd pxt | |
git checkout v0 | |
typings install | |
npm install | |
npm install -g pxt | |
jake | |
) | |
( | |
cd pxt-microbit | |
npm install | |
npm link ../pxt | |
) | |
( | |
cd pxt-microbit | |
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