docs: Update 2 files
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Failing after 45s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped

This commit is contained in:
Your Name
2025-06-25 18:33:25 +12:00
parent f6852828ad
commit 1136ffbbce
2 changed files with 9 additions and 2 deletions

View File

@ -51,8 +51,13 @@ RUN --mount=type=cache,target=/ccache \
# Copy the built executable to a regular directory for the final stage
RUN --mount=type=cache,target=/build \
mkdir -p /output && \
find /build -type f -executable -name "*${PROJECT}*" -exec cp {} /output/${PROJECT} \; || \
find /build -type f -executable -exec cp {} /output/${PROJECT} \;
if [ -f "/build/${PROJECT}" ]; then \
cp "/build/${PROJECT}" "/output/${PROJECT}"; \
else \
find /build -type f -executable -name "*${PROJECT}*" -exec cp {} /output/${PROJECT} \; || \
find /build -type f -executable -exec cp {} /output/${PROJECT} \; || \
(echo "Error: Could not find executable for ${PROJECT}" && ls -la /build && exit 1); \
fi
# if we're a release build, then run upx on the binary.
RUN if [ "${CMAKE_BUILD_TYPE}" = "Release" ]; then \