mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 10:03:55 +08:00
* probably broke a lot, need the commit though * finally works * make it work... * ... * kind of works * better styling * all should work * tiny cleanup * temp * looks nicer * create JWT in C++ * kilometers -> km * use correct free methods * dont put code in assert statement * Build JWT payload dynamically * get dongle id once * include cleanup * Remove qDebug * Update drive_stats.cc Github is a nice editor :) * swap week and all and fix sconscript * install openssl * openssl include dirs on mac * is this where openssl is? * It's here * small cleanup Co-authored-by: Comma Device <device@comma.ai> Co-authored-by: Willem Melching <willem.melching@gmail.com>
43 lines
1014 B
Bash
Executable File
43 lines
1014 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Install brew if required.
|
|
if [[ $(command -v brew) == "" ]]; then
|
|
echo "Installing Hombrew"
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
|
fi
|
|
|
|
brew install capnp \
|
|
coreutils \
|
|
eigen \
|
|
ffmpeg \
|
|
glfw \
|
|
libarchive \
|
|
libusb \
|
|
libtool \
|
|
llvm \
|
|
openssl \
|
|
pyenv \
|
|
qt5 \
|
|
zeromq
|
|
|
|
if [[ $SHELL == "/bin/zsh" ]]; then
|
|
RC_FILE="$HOME/.zshrc"
|
|
elif [[ $SHELL == "/bin/bash" ]]; then
|
|
RC_FILE="$HOME/.bash_profile"
|
|
fi
|
|
|
|
if [ -z "$OPENPILOT_ENV" ] && [ -n "$RC_FILE" ] && [ -z "$CI" ]; then
|
|
OP_DIR=$(git rev-parse --show-toplevel)
|
|
echo "source $OP_DIR/tools/openpilot_env.sh" >> $RC_FILE
|
|
source $RC_FILE
|
|
echo "Added openpilot_env to RC file: $RC_FILE"
|
|
fi
|
|
|
|
pyenv install -s 3.8.2
|
|
pyenv global 3.8.2
|
|
pyenv rehash
|
|
eval "$(pyenv init -)"
|
|
|
|
pip install pipenv==2020.8.13
|
|
pipenv install --system --deploy
|