From 1551e409c31992437cb2fa864f576d45c8433801 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 16 Aug 2026 15:49:12 -0300 Subject: big slow change: prebuilt shaders (SPIR-V/Metal), core gui reflow, docs, web + snapshot refresh --- src/macos/build-e2e.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/macos/build-e2e.sh') 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" -- cgit v1.3