From afd612be7eaea8706789b7f653c594068a98dafe Mon Sep 17 00:00:00 2001 From: DanS Date: Sun, 7 Jun 2026 10:17:37 -0500 Subject: [PATCH] fix(build): don't clobber the other variant's release artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The linux/windows release packaging did `rm -rf "$out"` on the whole output dir, so building ObsidianDragonLite into release// wiped the ObsidianDragon artifacts already there (both variants share release/linux and release/windows). Remove only the CURRENT variant's prior artifacts (by APP_BASENAME, which can't cross-match — "ObsidianDragon-*" excludes "ObsidianDragonLite-*"), so full-node and lite releases coexist. Co-Authored-By: Claude Opus 4.8 --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 509ed5a..e43c08d 100755 --- a/build.sh +++ b/build.sh @@ -362,8 +362,10 @@ build_release_linux() { fi # ── Package: release/linux/ ────────────────────────────────────────────── - rm -rf "$out" + # Remove only THIS variant's prior artifacts so full-node and lite releases can coexist in the + # same output dir (both ObsidianDragon* and ObsidianDragonLite* end up under release/linux/). mkdir -p "$out" + rm -rf "$out/${APP_BASENAME}-"* "$out/${APP_BASENAME}.AppImage" local DIST="${APP_BASENAME}-${VERSION}-Linux-x64" local dist_dir="$out/$DIST" @@ -714,8 +716,9 @@ HDR info "Binary: $(du -h "bin/${APP_BASENAME}.exe" | cut -f1)" # ── Package: release/windows/ ──────────────────────────────────────────── - rm -rf "$out" + # Remove only THIS variant's prior artifacts so full-node and lite releases coexist here. mkdir -p "$out" + rm -rf "$out/${APP_BASENAME}-"* "$out/${APP_BASENAME}.exe" local DIST="${APP_BASENAME}-${VERSION}-Windows-x64" local dist_dir="$out/$DIST"