Skip to content

Commit

Permalink
build: Fix errors in MacOS dev-install script
Browse files Browse the repository at this point in the history
The new install script had a few errors since I had installed the packages directly, and several of the packages underwent name changes since I originally wrote it.

Signed-off-by: Alan Everett <[email protected]>
  • Loading branch information
thatcomputerguy0101 committed Sep 8, 2023
1 parent d5eb07d commit 80e17f1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions scripts/dev-install-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,31 @@
install_packages()
{
PKGLIST=""
TAPLIST="osx-cross/avr osx-cross/arm"
TAPLIST="osx-cross/homebrew-avr osx-cross/homebrew-arm"
# AVR chip installation and building
PKGLIST="${PKGLIST} avrdude avr-gcc"
# ARM chip installation and building
PKGLIST="${PKGLIST} stm32flash wxmac arm-gcc-bin"
PKGLIST="${PKGLIST} stm32flash wxwidgets arm-gcc-bin"

# Tap necessary package repos
report_status "Tapping formula repositories..."
brew tap ${TAPLIST}
for TAP in $TAPLIST
do
brew tap $TAP
done
brew update

# Install desired packages
report_status "Installing packages..."
brew install ${PKGLIST}
}

# Helper functions
report_status()
{
echo -e "\n\n###### $1"
}

verify_ready()
{
if [ "$EUID" -eq 0 ]; then
Expand Down

0 comments on commit 80e17f1

Please sign in to comment.