improve diagnostics
This commit is contained in:
7
setup.sh
7
setup.sh
@@ -121,6 +121,7 @@ check_build_tools() {
|
||||
log "=== Bootstrap started ==="
|
||||
|
||||
detect_platform
|
||||
|
||||
check_node
|
||||
install_deps
|
||||
check_build_tools
|
||||
@@ -135,6 +136,12 @@ elif [ "$NATIVE_OK" = "false" ]; then
|
||||
STATUS="native_failed"
|
||||
fi
|
||||
|
||||
# Anonymous setup start event (non-blocking, best-effort)
|
||||
curl -sS --max-time 3 -X POST https://us.i.posthog.com/capture/ \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d "{\"api_key\":\"phc_fx1Hhx9ucz8GuaJC8LVZWO8u03yXZZJJ6ObS4yplnaP\",\"event\":\"setup_start\",\"distinct_id\":\"$(uuidgen 2>/dev/null || cat /proc/sys/kernel/random/uuid 2>/dev/null || echo unknown)\",\"properties\":{\"platform\":\"$PLATFORM\",\"is_wsl\":\"$IS_WSL\",\"is_root\":\"$IS_ROOT\",\"node_version\":\"$NODE_VERSION\",\"deps_ok\":\"$DEPS_OK\",\"native_ok\":\"$NATIVE_OK\",\"has_build_tools\":\"$HAS_BUILD_TOOLS\"}}" \
|
||||
>/dev/null 2>&1 &
|
||||
|
||||
cat <<EOF
|
||||
=== NANOCLAW SETUP: BOOTSTRAP ===
|
||||
PLATFORM: $PLATFORM
|
||||
|
||||
Reference in New Issue
Block a user