diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-16 15:49:12 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-18 23:44:42 -0300 |
| commit | 1551e409c31992437cb2fa864f576d45c8433801 (patch) | |
| tree | e2fae8451f87b735a1360c7c2e383fdc40165789 /src/macos/build-e2e.sh | |
| parent | be2a9957708cbf0c478ca861c4a1f0f227bbfe10 (diff) | |
| download | pardes-1551e409c31992437cb2fa864f576d45c8433801.tar.gz pardes-1551e409c31992437cb2fa864f576d45c8433801.zip | |
big slow change: prebuilt shaders (SPIR-V/Metal), core gui reflow, docs, web + snapshot refresh
Diffstat (limited to 'src/macos/build-e2e.sh')
| -rwxr-xr-x | src/macos/build-e2e.sh | 9 |
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" |
