Files
Pascal Hartig 0134b66f37 Save node binary with name flipper-runtime
Summary:
As discussed with lblasa. This solves a few issues:

- Confusing names in `ps` and Activity Monitor related to Flipper.
- Permission requests for the Keychain from "node" lead users to deny it.
- Seeing "node" as allowed apps for an entry in Keychain is confusing.

Reviewed By: lblasa

Differential Revision: D50232337

fbshipit-source-id: 3bc92aae0ca31d1a80582fb8a794bbc64fc2f2e5
2023-10-13 03:31:11 -07:00

15 lines
393 B
Bash
Executable File

#!/usr/bin/env bash
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
NODE_PATH="${SCRIPT_PATH}/flipper-runtime"
SERVER_RESOURCES="$SCRIPT_PATH/../Resources/server"
cd "$SERVER_RESOURCES" || exit 1
echo "Starting flipper-server ..."
"$NODE_PATH" . "$@" &
# Wait for the Flipper HTTP server to start listening
while ! curl -s http://localhost:52342 >/dev/null; do
sleep 1
done