fix(tools): make run-gui-with-fake.sh refuse a Lite build dir
A Lite-configured tree builds ObsidianDragonLite and has no embedded daemon, so any bin/ObsidianDragon left in it is a stale full-node binary that the harness would otherwise run silently. Point --build-dir at a full-node tree instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,11 @@ done
|
||||
|
||||
gui="$build_dir/bin/ObsidianDragon"
|
||||
stub="$build_dir/fake_dragonxd/dragonxd"
|
||||
# A Lite tree has no embedded daemon and builds ObsidianDragonLite; any bin/ObsidianDragon in it is stale.
|
||||
if grep -q '^DRAGONX_BUILD_LITE:BOOL=ON' "$build_dir/CMakeCache.txt" 2>/dev/null; then
|
||||
echo "$build_dir is configured as the Lite variant; pass --build-dir of a full-node tree" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! -x "$gui" ]]; then
|
||||
echo "missing $gui; build the app first (./build.sh)" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user