refactor: EqualizerWidget and the logic behind it.

convenience add: build.sh cai option (Clean AppImage)
This commit is contained in:
2026-06-19 18:54:20 +02:00
parent e62ab4626c
commit 66843e3ad2
8 changed files with 578 additions and 268 deletions
+14 -1
View File
@@ -17,6 +17,7 @@ clean_build() {
clean
mkdir build
cd build
echo "doing a clean build"
cmake ..
make -j"$(nproc)"
}
@@ -24,10 +25,11 @@ clean_build() {
release_build() {
if [ -d "build" ]; then
rm -rf "build"
echo "removing build directory"
fi
mkdir "build"
cd build
echo "starting cmake and make processes"
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j"$(nproc)"
}
@@ -36,6 +38,14 @@ run_executable() {
./build/SubWave
}
clean_appimage() {
if [ -e "SubWave-x86_64.AppImage" ]; then
rm -rf SubWave-x86_64.AppImage
echo "Removed AppImage"
fi
echo "No AppImage found, aborting"
}
case "${1:-build}" in
clean|c)
clean
@@ -52,6 +62,9 @@ case "${1:-build}" in
release|rb)
release_build
;;
cai|clean_appimage|cleanimg)
clean_appimage
;;
*)
echo "Usage: $0 {build|clean|cleanbuild|cb}"
exit 1