Skip to content

Commit

Permalink
fix(makefile): correct homebrew path on modern macOS machines
Browse files Browse the repository at this point in the history
  • Loading branch information
sammcj committed Jul 25, 2023
1 parent 157ac37 commit 881cc4a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ VERSION := $(shell python -c "from src.vorta._version import __version__; print(
.PHONY : help clean lint test
.DEFAULT_GOAL := help

# Set Homebrew location to /opt/homebrew on Apple Silicon, /usr/local on Intel
ifeq ($(shell uname -m),arm64)
export HOMEBREW = /opt/homebrew
else
export HOMEBREW = /usr/local
endif

clean:
rm -rf dist/*

dist/Vorta.app: ## Build macOS app locally (without Borg)
pyinstaller --clean --noconfirm package/vorta.spec
cp -R /usr/local/Caskroom/sparkle/*/Sparkle.framework dist/Vorta.app/Contents/Frameworks/
cp -R ${HOMEBREW}/Caskroom/sparkle/*/Sparkle.framework dist/Vorta.app/Contents/Frameworks/
rm -rf build/vorta dist/vorta

dist/Vorta.dmg: dist/Vorta.app ## Create notarized macOS DMG for distribution.
Expand Down

0 comments on commit 881cc4a

Please sign in to comment.