fix(coding-agent): target baseline x64 CPUs (#7390)

Fixes #7149

Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
This commit is contained in:
David Brailovsky
2026-08-03 13:57:51 +02:00
committed by GitHub
co-authored by Mario Zechner
parent d93e7e88fa
commit 816237c101
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -141,13 +141,18 @@ fi
for platform in "${PLATFORMS[@]}"; do
echo "Building for $platform..."
bun_target="bun-$platform"
if [[ "$platform" == *-x64 ]]; then
bun_target="${bun_target}-baseline"
fi
# Bun compiled executables only embed worker scripts when they are passed as
# explicit build entrypoints. The runtime can still use new URL(...), but the
# worker must be present in the compiled executable.
if [[ "$platform" == windows-* ]]; then
bun build --compile --target=bun-$platform ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi.exe"
bun build --compile --target="$bun_target" ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi.exe"
else
bun build --compile --target=bun-$platform ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi"
bun build --compile --target="$bun_target" ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi"
fi
done