fix(build): don't clobber the other variant's release artifacts
The linux/windows release packaging did `rm -rf "$out"` on the whole output dir, so building ObsidianDragonLite into release/<os>/ 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 <noreply@anthropic.com>
This commit is contained in:
7
build.sh
7
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"
|
||||
|
||||
Reference in New Issue
Block a user