chore: Sprachmittler OpenCode starter kit
This commit is contained in:
commit
374085ec2f
94 files changed
+4563
No files matched your search
@@ -0,0 +1,64 @@
|
||||
# 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 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)"
|
||||
|
||||
install: build-app
|
||||
@pkill -x Sprachmittler 2>/dev/null || true
|
||||
ditto "$(APP_PATH)" "$(INSTALL_DIR)/Sprachmittler.app"
|
||||
codesign --force --sign - "$(INSTALL_DIR)/Sprachmittler.app"
|
||||
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)
|
||||
Reference in new issue
Block a user