-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 861 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PYTHON := python3.13
VENV := engine/.venv
VENV_BIN := $(VENV)/bin
SWIFT_BUILD_DIR := MacRecorder/.build/debug
.PHONY: build build-python build-swift run clean setup installer
build: build-python build-swift
build-python: $(VENV_BIN)/activate
$(VENV_BIN)/pip install -e engine[dev] --quiet
$(VENV_BIN)/activate:
/opt/homebrew/bin/$(PYTHON) -m venv $(VENV)
build-swift:
cd MacRecorder && swift build
run: build
$(SWIFT_BUILD_DIR)/MacRecorder
clean:
rm -rf $(VENV)
rm -rf MacRecorder/.build
setup: build
@echo ""
@echo "=== Setup ==="
@echo "1. Run: make run"
@echo "2. Click menu bar icon → Setup Guide"
@echo "3. Install BlackHole and create Multi-Output Device"
@echo ""
test:
$(VENV_BIN)/pytest engine/tests -v
installer:
chmod +x scripts/build_installer.sh scripts/postinstall scripts/bootstrap_engine.sh
scripts/build_installer.sh