mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
Correct homebrew path on arm macOS. By @sammcj (#1760)
This commit is contained in:
parent
25b4cc0b8b
commit
0e37e1cf90
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue