Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.55 KB

macOS-Compile-From-Source-Instructions.md

File metadata and controls

41 lines (32 loc) · 1.55 KB

macOS - Compilation from source instructions

Table of Contents

Follow Homebrew developer instructions

^Top

Follow the instructions here developer instructions and you are done.

(optional) Running without sudo

^Top

This section is an optional installation procedure.

Assuming you are using the bash shell (using ``chsh -s /bin/bash `whoami```), we can create an alias to the relevant commands:

export BASHRC="~/.bash_profile"
export PM3LOCAL_PATH="$(greadlink -f .)"
touch $BASHRC
echo "alias pm3=\'$PM3LOCAL_PATH/pm3\'" >> $BASHRC
echo "alias pm3-flash=\'$PM3LOCAL_PATH/pm3-flash\'" >> $BASHRC
echo "alias pm3-flash-all=\'$PM3LOCAL_PATH/pm3-flash-all\'" >> $BASHRC
echo "alias pm3-flash-bootrom=\'$PM3LOCAL_PATH/pm3-flash-bootrom\'" >> $BASHRC
echo "alias pm3-flash-fullimage=\'$PM3LOCAL_PATH/pm3-flash-fullimage\'" >> $BASHRC

When you are done running the previous script, make sure to update the settings in your current shell (Mac Terminal) instance by running

source ~/.bash_profile

When you re-start the Mac terminal, new shell instances will automatically load these new settings.