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
This commit is contained in:
Pascal Hartig
2023-10-13 03:31:11 -07:00
committed by Facebook GitHub Bot
parent 436203161d
commit 0134b66f37
2 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NODE_PATH="${SCRIPT_PATH}/node"
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
@@ -9,6 +9,6 @@ echo "Starting flipper-server ..."
"$NODE_PATH" . "$@" &
# Wait for the Flipper HTTP server to start listening
while ! curl -s http://localhost:52342 > /dev/null; do
while ! curl -s http://localhost:52342 >/dev/null; do
sleep 1
done