Update .ci/compile.sh

Co-authored-by: tooomm <tooomm@users.noreply.github.com>
This commit is contained in:
BruebachL 2026-09-20 19:12:33 +02:00 committed by GitHub
parent 799e39577e
commit 55ce3d18e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -333,7 +333,7 @@ if [[ $MAKE_PACKAGE ]]; then
cd "$BUILD_DIR" cd "$BUILD_DIR"
package="$(find . -maxdepth 1 -type f -name 'Cockatrice-*.exe' -print -quit)" package="$(find . -maxdepth 1 -type f -name 'Cockatrice-*.exe' -print -quit)"
if [[ ! $package ]]; then if [[ ! $package ]]; then
echo "::error file=$0::could not find installer to inspect" echo "::error file=$0::Could not find installer to inspect"
exit 1 exit 1
fi fi
seven_zip="$(command -v 7z || true)" seven_zip="$(command -v 7z || true)"
@ -346,10 +346,10 @@ if [[ $MAKE_PACKAGE ]]; then
echo "Inspecting $package" echo "Inspecting $package"
if "$seven_zip" l "$package" | if "$seven_zip" l "$package" |
grep -E "_autogen|\.dir[\\/]|\.tlog|(^|[\\/])x64[\\/]|(^|[\\/])\.qt[\\/]|(^|[\\/])\.qsb[\\/]|(^|[\\/])\.lupdate[\\/]|CMakeFiles"; then grep -E "_autogen|\.dir[\\/]|\.tlog|(^|[\\/])x64[\\/]|(^|[\\/])\.qt[\\/]|(^|[\\/])\.qsb[\\/]|(^|[\\/])\.lupdate[\\/]|CMakeFiles"; then
echo "::error file=$0::installer contains build-tree artifacts" echo "::error file=$0::Installer contains build-tree artifacts"
exit 1 exit 1
fi fi
echo "Installer content is clean." echo "Installer content is clean"
fi fi
echo "::endgroup::" echo "::endgroup::"
fi fi