From a9949b8cf2dca7e365306a13cb363ad6b88fb6ce Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 10 Jul 2026 01:05:47 -0600 Subject: [PATCH] chore: fix stale packaging and monitor references to the deleted tree cc --- packaging/flatpak/com.blitzfc.qbz.yml | 3 --- packaging/icons/README.md | 7 ++----- scripts/monitor-resources.sh | 23 +++++------------------ 3 files changed, 7 insertions(+), 26 deletions(-) diff --git a/packaging/flatpak/com.blitzfc.qbz.yml b/packaging/flatpak/com.blitzfc.qbz.yml index efadd913c..694a4f191 100644 --- a/packaging/flatpak/com.blitzfc.qbz.yml +++ b/packaging/flatpak/com.blitzfc.qbz.yml @@ -89,7 +89,4 @@ modules: path: ../.. skip: - .git - - node_modules - - src-tauri/target - crates/target - - .svelte-kit diff --git a/packaging/icons/README.md b/packaging/icons/README.md index af205a2d8..e7b9c516b 100644 --- a/packaging/icons/README.md +++ b/packaging/icons/README.md @@ -1,11 +1,8 @@ # Canonical app icons Canonical icon source for every Linux/macOS packager (nfpm deb/rpm, AppImage, -tarball, flatpak, snap, ebuilds, PKGBUILDs). Copied out of `src-tauri/icons/` -on 2026-07-02 so packaging stops depending on the retired Tauri tree — -`src-tauri/` is reference-only and will eventually be deleted. +tarball, flatpak, snap, ebuilds, PKGBUILDs). This directory is the single +source of truth — the old `src-tauri/icons/` tree was removed in 2.0.2. - `NNxNN.png` — hicolor sizes (32/48/64/128/256/512, plus `128x128@2x`) - `icon.icns` — macOS bundle icon - -If the artwork ever changes, update BOTH copies (or delete the src-tauri one). diff --git a/scripts/monitor-resources.sh b/scripts/monitor-resources.sh index 7da693f91..fdfbc47eb 100755 --- a/scripts/monitor-resources.sh +++ b/scripts/monitor-resources.sh @@ -6,12 +6,12 @@ echo "=== QBZ Resource Monitor ===" echo "Waiting for QBZ process..." echo "" -# Wait for process to start -while ! pgrep -f "qbz-nix" > /dev/null 2>&1; do +# Wait for process to start (Slint binary is named "qbz") +while ! pgrep -x "qbz" > /dev/null 2>&1; do sleep 0.5 done -PID=$(pgrep -f "qbz-nix" | head -1) +PID=$(pgrep -x "qbz" | head -1) echo "Found QBZ PID: $PID" echo "" echo "Press Ctrl+C to stop monitoring" @@ -31,22 +31,9 @@ while true; do MEM_MB=$((MEM / 1024)) THREADS=$(ps -p "$PID" -o nlwp= 2>/dev/null | tr -d ' ') - # Get WebKit process if exists - WEBKIT_PID=$(pgrep -f "WebKitWebProcess" | head -1 2>/dev/null) - if [[ -n "$WEBKIT_PID" ]]; then - WEBKIT_MEM=$(ps -p "$WEBKIT_PID" -o rss= 2>/dev/null | tr -d ' ') - WEBKIT_MB=$((WEBKIT_MEM / 1024)) - WEBKIT_CPU=$(ps -p "$WEBKIT_PID" -o %cpu= 2>/dev/null | tr -d ' ') - else - WEBKIT_MB=0 - WEBKIT_CPU=0 - fi - - TOTAL_MB=$((MEM_MB + WEBKIT_MB)) - # Print stats - printf "\r[QBZ] CPU: %5s%% | RAM: %4dMB | Threads: %2s | [WebKit] CPU: %5s%% | RAM: %4dMB | TOTAL: %4dMB" \ - "$CPU" "$MEM_MB" "$THREADS" "$WEBKIT_CPU" "$WEBKIT_MB" "$TOTAL_MB" + printf "\r[QBZ] CPU: %5s%% | RAM: %4dMB | Threads: %2s" \ + "$CPU" "$MEM_MB" "$THREADS" sleep 1 done