#!/bin/bash # Build the frozen app for manual testing. On macOS this produces # dist/Jarvis.app; on Linux dist/Jarvis/. There is no Inno-equivalent # installer step on these platforms, so the bundle directory itself is # the artefact you'd ship. set -euo pipefail cd "$(dirname "$0")/.." PROJECT_ROOT="$(pwd)" # Stamp a dev version file so jarvis.get_version() works in the bundle. GIT_SHA="$(git rev-parse --short=7 HEAD 2>/dev/null || echo local)" DEV_VERSION="dev-${GIT_SHA}" echo "[build_installer] Stamping dev _version.py (${DEV_VERSION})..." cat > "${PROJECT_ROOT}/src/jarvis/_version.py" <&2 exit 1 fi else if [[ -d dist/Jarvis ]]; then echo echo "[build_installer] โœ… SUCCESS" echo " Bundle: ${PROJECT_ROOT}/dist/Jarvis" echo "[build_installer] โ„น๏ธ No installer is produced on Linux." else echo "[build_installer] โŒ Bundle missing at dist/Jarvis" >&2 exit 1 fi fi