#!/bin/sh
# Orca server-only launcher: runs the bundled Orca CLI under the bundled Node.
set -e
self=$0
if command -v readlink >/dev/null 2>&1 && resolved=$(readlink -f -- "$self" 2>/dev/null); then
  self=$resolved
fi
root=$(CDPATH= cd -- "$(dirname -- "$self")/.." && pwd -P)
node="$root/runtimes/node-8f9c2a55879e9705cb285b6cdd649d95df642c6720f052cb30f300d2677da99f/bin/node"
unset ORCA_APP_EXECUTABLE ORCA_SERVE_RUNTIME
ELECTRON_RUN_AS_NODE=1
export ELECTRON_RUN_AS_NODE
exec "$node" "$root/orcad/out/cli/index.js" "$@"
