From c9ff9a13735010a6d3937a05e8ce9f00f9fab3ac Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 9 Mar 2026 22:45:24 +0800 Subject: Add GTK GUI build system for Unix platforms --- gui/gtk/scripts/clean.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 gui/gtk/scripts/clean.sh (limited to 'gui/gtk/scripts/clean.sh') diff --git a/gui/gtk/scripts/clean.sh b/gui/gtk/scripts/clean.sh new file mode 100755 index 0000000..1c8aa5a --- /dev/null +++ b/gui/gtk/scripts/clean.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Butchunker GTK Clean Script + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" +BUILD_DIR="$PROJECT_ROOT/build" + +# Remove build directory if it exists +if [ -d "$BUILD_DIR" ]; then + rm -rf "$BUILD_DIR" +fi + +# Also clean any other generated files + +# Remove CMake cache files if they exist outside build directory +if [ -f "$PROJECT_ROOT/CMakeCache.txt" ]; then + rm -f "$PROJECT_ROOT/CMakeCache.txt" +fi + +if [ -d "$PROJECT_ROOT/CMakeFiles" ]; then + rm -rf "$PROJECT_ROOT/CMakeFiles" +fi + +if [ -f "$PROJECT_ROOT/cmake_install.cmake" ]; then + rm -f "$PROJECT_ROOT/cmake_install.cmake" +fi + +if [ -f "$PROJECT_ROOT/Makefile" ]; then + rm -f "$PROJECT_ROOT/Makefile" +fi -- cgit