M7: corpus manifest loader/validation, chrF/BLEU/token/numeric metrics, raw-output and report.md/report.json writer, and sprachmittler-cli languages/detect/eval. A synthetic 4-segment run with the 7B validated the harness; the private-corpus and 1.8B evaluation and the default-model ADR remain open. M8: privacy-check root fixture + seeded self-test wired into make verify; English/German localisation for the app shell; end-user USER_GUIDE; release.sh (unsigned archive, Developer ID sign, notarise/staple, DMG, --dry-run); idle CPU/memory and warm 7B measurements in PERFORMANCE. Docs: PROGRESS M7–M8, MODEL_EVALUATION results log/gate status, PERFORMANCE measurements, TESTING evaluation cases, ADR-008 status. Compatibility/VoiceOver/notarisation gates remain manual. Verified: make verify green (format, strict lint, privacy self-test, Debug+Release signatures, 227 package tests); CLI languages/detect/eval run; release dry-run.
70 lines
1.8 KiB
Makefile
70 lines
1.8 KiB
Makefile
# Sprachmittler — developer entry points. See AGENTS.md.
|
|
PKG := Packages/SprachmittlerKit
|
|
PROJECT := Sprachmittler.xcodeproj
|
|
SCHEME := Sprachmittler
|
|
DERIVED := .build/xcode
|
|
APP_PATH := $(DERIVED)/Build/Products/Debug/Sprachmittler.app
|
|
INSTALL_DIR ?= /Applications
|
|
|
|
.PHONY: bootstrap doctor generate build build-pkg build-app test live-test verify app install release fixtures smoke privacy-check format manifest clean
|
|
|
|
bootstrap:
|
|
@scripts/bootstrap.sh
|
|
|
|
doctor:
|
|
@scripts/opencode-check.sh
|
|
|
|
generate:
|
|
xcodegen generate --spec project.yml
|
|
|
|
build: build-pkg build-app
|
|
|
|
build-pkg:
|
|
swift build --package-path $(PKG)
|
|
|
|
build-app: generate
|
|
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Debug \
|
|
-derivedDataPath $(DERIVED) -destination 'platform=macOS,arch=arm64' -quiet build
|
|
|
|
test:
|
|
swift test --package-path $(PKG) --skip SprachmittlerLiveTests
|
|
|
|
live-test:
|
|
SPRACHMITTLER_LIVE=1 swift test --package-path $(PKG) --filter SprachmittlerLiveTests
|
|
|
|
verify:
|
|
@scripts/verify.sh
|
|
|
|
app: build-app
|
|
@pkill -x Sprachmittler 2>/dev/null || true
|
|
open "$(APP_PATH)"
|
|
|
|
release:
|
|
@scripts/release.sh --dry-run
|
|
|
|
install: build-app
|
|
@pkill -x Sprachmittler 2>/dev/null || true
|
|
ditto "$(APP_PATH)" "$(INSTALL_DIR)/Sprachmittler.app"
|
|
codesign --force --sign - --options runtime \
|
|
--entitlements App/Sprachmittler.entitlements "$(INSTALL_DIR)/Sprachmittler.app"
|
|
scripts/check-signature.sh "$(INSTALL_DIR)/Sprachmittler.app" install
|
|
open "$(INSTALL_DIR)/Sprachmittler.app"
|
|
|
|
fixtures:
|
|
@scripts/capture-fixtures.sh
|
|
|
|
smoke:
|
|
@scripts/smoke-ollama.sh
|
|
|
|
privacy-check:
|
|
@scripts/privacy-check.sh
|
|
|
|
format:
|
|
@command -v swiftformat >/dev/null && swiftformat App $(PKG) || echo "swiftformat not installed (make bootstrap)"
|
|
|
|
manifest:
|
|
@scripts/manifest.sh
|
|
|
|
clean:
|
|
rm -rf .build $(PKG)/.build $(PROJECT)
|