- Add native .gam mesh parser and mesh model (GamutMeshParser, GamutMesh). - Add GamutView / GamutViewModel with SceneKit, bundled sRGB.gam reference, and profile-gamut comparison. - Wire Stage 5 "View Gamut" button and sidebar quick action. - Extract a best-effort .gam mesh after colprof via Iccgamut in ProfileWorkflowViewModel, with artefact gating for the generated .gam. - Add BinaryResolver.referenceGamut() for bundled reference gamuts. - Add Milestone6GamutUITests and GamutMeshParserTests. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
18 lines
530 B
Bash
Executable File
18 lines
530 B
Bash
Executable File
#!/bin/sh
|
|
# Mock iccgamut for Milestone 5/6 UI tests.
|
|
# Writes {stem}.gam next to the profile path.
|
|
last=""
|
|
for arg in "$@"; do last="$arg"; done
|
|
if [ "${ICCERY_MOCK_ICCGAMUT_EXIT:-0}" -ne 0 ]; then
|
|
echo "mock iccgamut failure" >&2
|
|
exit "$ICCERY_MOCK_ICCGAMUT_EXIT"
|
|
fi
|
|
stem=$(basename "$last" | sed 's/\.icc$//; s/\.icm$//')
|
|
dir=$(dirname "$last")
|
|
if [ -n "${ICCERY_MOCK_GAMUT_SOURCE}" ] && [ -f "${ICCERY_MOCK_GAMUT_SOURCE}" ]; then
|
|
cp "${ICCERY_MOCK_GAMUT_SOURCE}" "$dir/$stem.gam"
|
|
else
|
|
touch "$dir/$stem.gam"
|
|
fi
|
|
exit 0
|