Skip to content

Instantly share code, notes, and snippets.

@sgk
Last active December 13, 2017 02:26
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/d220104f1897301f57049f7e5e18f1eb to your computer and use it in GitHub Desktop.
Save sgk/d220104f1897301f57049f7e5e18f1eb to your computer and use it in GitHub Desktop.
Built PXT/micro:bit 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 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 git@github.com:Microsoft/pxt.git
git clone git@github.com: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