#!/bin/bash
|
# Round01 real Space/Window snapshot dump. This is a diagnostic entrypoint and
|
# must not be treated as a product UI.
|
|
set -euo pipefail
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
OUTPUT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
# shellcheck source=build-output-paths.sh
|
source "$SCRIPT_DIR/build-output-paths.sh"
|
SOURCE_ROOT="$OUTPUT_ROOT/C1.source"
|
APP="$BUILD_CURRENT_APP"
|
|
cd "$SOURCE_ROOT"
|
swift build >&2
|
|
"$SCRIPT_DIR/package-app.sh" >&2
|
|
"$APP/Contents/MacOS/Aligner" \
|
--round0-skip-permissions \
|
--round01-dump-window-snapshot \
|
--round01-dump-window-snapshot-pretty
|