Add a committed AppIcon asset catalog generated from scripts/generate-app-icon.swift, using the same indigo tile/grid/text-bar family as Vorleser and Schriftleser with a two-speech-bubble translation motif. Wire CFBundleIconName/ASSETCATALOG_COMPILER_APPICON_NAME and add make icon. Change make install to use the Release build and the same signature checks as the DMG. Add make dmg/scripts/make-dmg.sh: stage the Release app with an Applications link, create and verify a local unnotarised DMG, mount it, and re-check the signature. Verified: make verify green; make dmg produced dist/Sprachmittler-0.1.0-local.dmg with a valid signature; make install installed and launched /Applications/Sprachmittler.app.
87 lines
2.6 KiB
Makefile
87 lines
2.6 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
|
|
RELEASE_APP := .build/xcode-release/Build/Products/Release/Sprachmittler.app
|
|
INSTALL_DIR ?= /Applications
|
|
DMG_DIR ?= dist
|
|
|
|
.PHONY: bootstrap doctor generate build build-pkg build-app test live-test verify app install release-build dmg release icon fixtures smoke privacy-check format manifest clean
|
|
|
|
bootstrap:
|
|
@scripts/bootstrap.sh
|
|
|
|
doctor:
|
|
@scripts/opencode-check.sh
|
|
|
|
generate:
|
|
xcodegen generate --spec project.yml
|
|
|
|
icon:
|
|
swift scripts/generate-app-icon.swift
|
|
|
|
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
|
|
|
|
release-build: generate
|
|
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Release \
|
|
-derivedDataPath .build/xcode-release -destination 'platform=macOS,arch=arm64' -quiet build
|
|
|
|
# Build Release, replace $(INSTALL_DIR)/Sprachmittler.app and start it. Not `cp -r`: ditto keeps
|
|
# symlinks and attributes. Remove the old copy first, because ditto merges.
|
|
install: release-build
|
|
@test -d "$(RELEASE_APP)" || { echo "error: $(RELEASE_APP) not found"; exit 1; }
|
|
@test -d "$(INSTALL_DIR)" || { echo "error: $(INSTALL_DIR) does not exist"; exit 1; }
|
|
scripts/check-signature.sh "$(RELEASE_APP)" install
|
|
@pkill -x Sprachmittler 2>/dev/null || true
|
|
rm -rf "$(INSTALL_DIR)/Sprachmittler.app"
|
|
ditto "$(RELEASE_APP)" "$(INSTALL_DIR)/Sprachmittler.app"
|
|
scripts/check-signature.sh "$(INSTALL_DIR)/Sprachmittler.app" install
|
|
open "$(INSTALL_DIR)/Sprachmittler.app"
|
|
|
|
# Local, unnotarised DMG from the same Release build. Use scripts/release.sh for distribution.
|
|
dmg: release-build
|
|
@DMG_DIR="$(DMG_DIR)" scripts/make-dmg.sh
|
|
|
|
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)
|