From a49cc3dea850556abe3f80c7a372a687fc462c72 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 13 Jan 2026 15:53:51 +0100 Subject: [PATCH] Cleanup some files during ct-ng build (flatpak) --- flatpak/io.github.wivrn.wivrn.yml.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flatpak/io.github.wivrn.wivrn.yml.in b/flatpak/io.github.wivrn.wivrn.yml.in index 6c85ff0c..30274957 100644 --- a/flatpak/io.github.wivrn.wivrn.yml.in +++ b/flatpak/io.github.wivrn.wivrn.yml.in @@ -75,8 +75,16 @@ modules: tag: 620b909cd0713f68084378b63cf61b5232757b90 - type: shell commands: + # Make the build lighter: + # don't generate debug symbols at all - sed -i 's/-O2 -g/-O2/' scripts/crosstool-NG.sh - sed -i 's/-g -O2/-O2/' scripts/build/cc/gcc.sh + # Delete extracted sources when no longer needed + - sed -i '/# Cleanup/a rm -r "$(readlink "${kernel_path}")"' scripts/build/kernel/linux.sh + # Delete tarballs once extracted + - sed -i '2228i CT_DoExecLog FILE rm "$(readlink -f "${file}")"' scripts/functions + # Delete big test files + - sed -i '/CT_ExtractPatch GCC/a CT_Pushd "${CT_SRC_DIR}/gcc/gcc/testsuite/";CT_DoExecLog ALL rm -rf $(ls -1 | grep -v selftests);CT_Popd' scripts/build/cc/gcc.sh cleanup: - '*'