#!/bin/bash

rm -rf ~/Library/Caches/org.carthage.CarthageKit

# Navigate to Highlightr directory
cd /Users/janne/Documents/Dev-iOS-Mac/F-Bar/Highlightr/ || exit

# Upgrade Carthage without auto-updating Homebrew
HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade carthage

# Update Carthage dependencies for macOS platform
carthage update --platform macOS --no-use-binaries

# Navigate to PonyCode directory
cd /Users/janne/Documents/Dev-iOS-Mac/F-Bar/PonyCode/ || exit

# Update Homebrew without auto-updating Carthage
HOMEBREW_NO_AUTO_UPDATE=1 brew update

# Update Carthage dependencies for macOS platform
carthage update --platform macOS --no-use-binaries
