summaryrefslogtreecommitdiff
path: root/src/macos/build-e2e.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos/build-e2e.sh')
-rwxr-xr-xsrc/macos/build-e2e.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/macos/build-e2e.sh b/src/macos/build-e2e.sh
index c0f9613c..e9ccebcd 100755
--- a/src/macos/build-e2e.sh
+++ b/src/macos/build-e2e.sh
@@ -32,6 +32,10 @@ bin="$out/bin/pardes-macos-e2e"
command -v swiftc >/dev/null || { echo "swiftc not found (needs macOS + Command Line Tools)" >&2; exit 1; }
mkdir -p "$out/bin"
+# Bundle.main.resourceURL is the executable directory for this standalone
+# harness. Put the same committed source there that the real app installs into
+# Contents/Resources, so the shader path is exercised rather than bypassed.
+cp "$root/shaders/crt.ci.metal" "$out/bin/crt.ci.metal"
# -import-objc-header and -lc++ are the app link's, unchanged, and have to stay
# that way: this link exists to exercise the app's link, so anything that
@@ -44,9 +48,12 @@ swiftc -O -target "$(uname -m)-apple-macos$minver" \
-import-objc-header "$root/src/macos/pardes.h" \
-o "$bin" \
"$root/src/macos/Sources/PardesView.swift" \
+ "$root/src/macos/Sources/ScenePostprocessor.swift" \
+ "$root/src/macos/Sources/FileWatcher.swift" \
"$root/src/macos/Sources/AppDelegate.swift" \
"$root/test/macos_e2e.swift" \
"$lib" -lc++ \
- -framework AppKit -framework CoreText -framework CoreGraphics
+ -framework AppKit -framework CoreText -framework CoreGraphics \
+ -framework CoreImage -framework Metal
echo "built $bin"