Latest version at https://gist.github.com/clach04/445b38080b672aa61572e84525805c37
Based on https://gist.github.com/zeevro/ce20d0d74a869d73119e9d1522b7caa7 - a 64-bit downloader for Pebble SDK under Linux (or Windows WSL) - Ubuntu 18.04.2.
Picks up binaries from Rebble (AWS for some reason not from github) along with (updated) pebble tool from github.
This script downloads and installs everything needed to build projects and also run the emulator.
Was tested on (32-bit) Lubuntu 16.04 LTS.