diff --git a/build.sh b/build.sh index 2acb73b..d8681a4 100755 --- a/build.sh +++ b/build.sh @@ -1055,8 +1055,12 @@ TOOLCHAIN info "Binary: $(du -h "bin/${APP_BASENAME}" | cut -f1)" # ── Create .app bundle ─────────────────────────────────────────────────── - rm -rf "$out" mkdir -p "$out" + # Clean only THIS variant's prior artifacts so full-node and lite releases can + # coexist in release/mac/ (Linux/Windows scope their cleanup the same way). The + # "ObsidianDragon-" glob never matches "ObsidianDragonLite-" (and vice versa), + # and the ".app" names are exact. + rm -rf "$out/${APP_BASENAME}.app" "$out/${APP_BASENAME}-"*.app.zip "$out/${APP_BASENAME}-"*.dmg local APP="$out/${APP_BASENAME}.app" local CONTENTS="$APP/Contents" @@ -1256,8 +1260,10 @@ PLIST fi # ── Create DMG ─────────────────────────────────────────────────────────── - local DMG_BASENAME="DragonX_Wallet" - $DO_LITE && DMG_BASENAME="DragonX_Wallet_Lite" + # DMG filename matches the app bundle name (ObsidianDragon / ObsidianDragonLite). + # The mounted volume + CFBundleName keep the "DragonX Wallet" display branding + # (APP_DISPLAY_NAME above). + local DMG_BASENAME="${APP_BASENAME}" local DMG_NAME="${DMG_BASENAME}-${VERSION}-macOS-${MAC_ARCH}.dmg" if command -v create-dmg &>/dev/null; then