Files
upstream-mirror 8e9cceaeae
Some checks failed
Build / test on ubuntu-latest (py-3.9) (push) Failing after 2m36s
Build / typecheck (push) Successful in 1m38s
Build / test on macos-latest (py-3.9) (push) Has been cancelled
Build / test on windows-latest (py-3.9) (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
snapshot of https://github.com/ActivityWatch/aw-watcher-window.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 00:21:37 +05:00

32 lines
782 B
Makefile

.PHONY: build test package clean
MACOSX_DEPLOYMENT_TARGET ?= 12.0
build:
poetry install
# if macOS, build swift
if [ "$(shell uname)" = "Darwin" ]; then \
make build-swift; \
fi
build-swift: aw_watcher_window/aw-watcher-window-macos
aw_watcher_window/aw-watcher-window-macos: aw_watcher_window/macos.swift
swiftc -target "$(shell uname -m)-apple-macosx$(MACOSX_DEPLOYMENT_TARGET)" $^ -o $@
test:
poetry run aw-watcher-window --help # Ensures that it at least starts
poetry run python -m pytest tests/
make typecheck
typecheck:
poetry run mypy aw_watcher_window/ --ignore-missing-imports
package:
pyinstaller aw-watcher-window.spec --clean --noconfirm
clean:
rm -rf build dist
rm -rf aw_watcher_window/__pycache__
rm aw_watcher_window/aw-watcher-window-macos