forked from Zwater/zackwatch-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbefore_install.sh
30 lines (25 loc) · 1.13 KB
/
before_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Install NPM 3
npm install npm@3 -g
set -e
echo 'pBuild 1.5'
echo 'Installing Pebble SDK and its Dependencies...'
cd ~
mkdir -p ~/pebble-dev
mkdir -p ~/.pebble-sdk
touch ~/.pebble-sdk/NO_TRACKING
# Get the Pebble SDK and toolchain
#if [ ! -d $HOME/pebble-dev/${PEBBLE_SDK} ]; then
wget https://developer.rebble.io/s3.amazonaws.com/assets.getpebble.com/pebble-tool/${PEBBLE_SDK}.tar.bz2
# Extract the SDK
tar -jxf ${PEBBLE_SDK}.tar.bz2 -C ~/pebble-dev/
# Install the Python library dependencies locally
cd ~/pebble-dev/${PEBBLE_SDK}
sed -i '286s/.*/ return requests.get("{}{}".format(self.DOWNLOAD_SERVER, path), *args, verify=False)/' pebble-tool/pebble_tool/sdk/manager.py
virtualenv --no-site-packages .env
source .env/bin/activate
sed -i 's/https:\/\/s3-us-west-2.amazonaws.com\/pebble-sdk-homebrew\/pypkjs-1.0.6.tar.gz/https:\/\/github.com\/ltpitt\/vagrant-pebble-sdk\/blob\/master\/pypkjs-1.0.6.tar.gz?raw=true/g' requirements.txt
pip install -r requirements.txt
deactivate
~/pebble-dev/${PEBBLE_SDK}/bin/pebble sdk install https://github.com/aveao/PebbleArchive/raw/master/SDKCores/sdk-core-4.3.tar.bz2
#fi