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"