Recl∆Im — the F∆I product line for Pflicht-basierte
Wirkungsanalyse und Reform-Vorschlags-Pipelines. Replaces the
working title 'Law-Heatmap', which described the demo view
rather than the platform. Heatmap, Norms list, Hub view,
Methodik are now four panes of the same Recl∆Im app.
Renames in this commit:
Flutter package lawheatmap_app -> reclaim_app
macOS bundle id ai.flemming.lawheatmapApp -> ai.flemming.reclaim
macOS PRODUCT_NAME lawheatmap_app -> reclaim_app
Theme tokens LawHeatmapColors/Space/Radius/Typography/Theme
-> Reclaim*
Surface card LawHeatmapCard -> ReclaimCard
Top-level widget LawHeatmapApp -> ReclaimApp
Theme files lawheatmap_theme.dart/lawheatmap_tokens.dart
-> reclaim_theme.dart/reclaim_tokens.dart
Widget file lawheatmap_card.dart -> reclaim_card.dart
Build script build-macos.sh paths and headline string
Docs MACHBARKEITSSTUDIE.md, METHODIK.md, RUN.md,
app/README.md, flow YAML
UI strings 'F∆I Law-Heatmap' / 'Law-Heatmap'
-> 'Recl∆Im' / 'Recl∆Im (F∆I)' for vendor-
prefixed contexts
flutter analyze: clean. flutter test: 2/2 passing.
The local working directory stays fai_lawheatmap/ for now —
the dir is referenced by the .claude project metadata; renaming
it would break session continuity for no real gain. The Forgejo
repo was renamed via API in the same change-set (fai/lawheatmap
-> fai/reclaim), with the legacy slug serving a redirect
courtesy of Forgejo's built-in rename handling.
Signed-off-by: flemming-it <sf@flemming.it>
48 lines
1.5 KiB
Bash
Executable file
48 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Robust macOS build for the Recl∆Im (F∆I) client.
|
|
#
|
|
# macOS xattrs (especially `com.apple.provenance` on files that
|
|
# touched iCloud or were downloaded by curl) make Xcode's
|
|
# codesign step reject the .app. This wrapper strips xattrs
|
|
# before AND after the build, then re-signs ad-hoc so the
|
|
# binary launches without Gatekeeper friction.
|
|
#
|
|
# Use this instead of bare `flutter build macos --debug` for
|
|
# local dev builds. CI on a clean machine doesn't need it.
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "[1/4] strip xattrs (assets, macos, build)"
|
|
xattr -cr assets/ 2>/dev/null || true
|
|
xattr -cr macos/ 2>/dev/null || true
|
|
xattr -cr build/ 2>/dev/null || true
|
|
|
|
# The Xcode CodeSign step runs ON its own; if it sees a stale
|
|
# xattr it aborts. We disable its built-in signing via env and
|
|
# resign afterwards.
|
|
echo "[2/4] flutter build macos --debug (codesigning disabled)"
|
|
flutter build macos --debug \
|
|
--dart-define=CHAIN_HUB_MODE=mock \
|
|
|| {
|
|
rc=$?
|
|
echo " flutter exited $rc — continuing to xattr+resign step in case the binary linked"
|
|
}
|
|
|
|
APP=build/macos/Build/Products/Debug/reclaim_app.app
|
|
if [ ! -d "$APP" ]; then
|
|
echo "ERROR: $APP does not exist — flutter build failed before linking"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[3/4] strip xattrs from built .app"
|
|
xattr -cr "$APP"
|
|
|
|
echo "[4/4] ad-hoc resign"
|
|
/usr/bin/codesign --force --sign - --timestamp=none --deep "$APP"
|
|
|
|
echo
|
|
echo "done. Launch with:"
|
|
echo " open $APP"
|
|
echo " # or directly: $APP/Contents/MacOS/reclaim_app"
|