Files
flipper/desktop/static/flipper-server-app-template/Flipper.app/Contents/MacOS/Flipper
Lorenzo Blasa 40939e1ae5 Get MacOS dock icon
Summary:
The icon was not shown in the past as it was indefinitely bouncing on the dock.

This is fixed now by asynchronously initiating the Node server process and then waiting until it becomes ready.

Reviewed By: passy

Differential Revision: D49907976

fbshipit-source-id: cdeaa578be42d9f5308e2e0df50872858b8248c3
2023-10-04 05:37:12 -07:00

15 lines
387 B
Bash
Executable File

#!/usr/bin/env bash
SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NODE_PATH="${SCRIPT_PATH}/node"
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