feat(app): family app icon, Release install and local dmg

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.
This commit is contained in:
schihei committed 2026-11-26 14:19:44 +01:00
1 parent 0ab5ae78bf
commit 2cce12ff17
20 files changed
+483 -8

No files matched your search

+22 -5
View File
@@ -4,9 +4,11 @@ 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 fixtures smoke privacy-check format manifest clean
.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
@@ -17,6 +19,9 @@ doctor:
generate:
xcodegen generate --spec project.yml
icon:
swift scripts/generate-app-icon.swift
build: build-pkg build-app
build-pkg:
@@ -42,14 +47,26 @@ app: build-app
release:
@scripts/release.sh --dry-run
install: build-app
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
ditto "$(APP_PATH)" "$(INSTALL_DIR)/Sprachmittler.app"
codesign --force --sign - --options runtime \
--entitlements App/Sprachmittler.entitlements "$(INSTALL_DIR)/Sprachmittler.app"
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