From b2c314f759ef875c5d0881d8b4b897ab9cf1e311 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 9 Jan 2025 10:17:40 +0900 Subject: [PATCH] BUILD_LOCALLY: added user prompt to clean the build cache --- developer_toolbox/build_retrodeck_locally.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/developer_toolbox/build_retrodeck_locally.sh b/developer_toolbox/build_retrodeck_locally.sh index 4d64b919..6990704b 100755 --- a/developer_toolbox/build_retrodeck_locally.sh +++ b/developer_toolbox/build_retrodeck_locally.sh @@ -19,6 +19,15 @@ else rm -f "placeholders.cache" fi +read -rp "Do you want to clear the build cache?\nKeeping the build cache can speed up the build process, but it might cause issues and should be cleared occasionally [y/N] " clear_cache_input +clear_cache_input=${clear_cache_input:-N} +if [[ "$clear_cache_input" =~ ^[Yy]$ ]]; then + # User chose to clear the build cache + echo "Clearing build cache..." + rm -rf "retrodeck-repo" "retrodeck-flatpak-cooker" ".flatpak-builder" + +fi + git submodule update --init --recursive export GITHUB_WORKSPACE="."