#!/usr/bin/env bash # Local macOS visual tests must load the library that was just built. set -euo pipefail cd "$(dirname "$0")/.." cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build --target mtgodot -j8 cp project/bin/libmtgodot.macos.template_release.dylib project/bin/libmtgodot.macos.template_debug.dylib codesign --force --sign - project/bin/libmtgodot.macos.template_debug.dylib shasum -a 256 project/bin/libmtgodot.macos.template_debug.dylib "${GODOT:-godot}" --headless --path project --script character_winding_test.gd "${GODOT:-godot}" --path project --script char_select_visual_test.gd -- "$@"