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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
34304300c8
commit
40939e1ae5
@@ -40,7 +40,5 @@
|
||||
<true/>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -6,4 +6,9 @@ SERVER_RESOURCES="$SCRIPT_PATH/../Resources/server"
|
||||
|
||||
cd "$SERVER_RESOURCES" || exit 1
|
||||
echo "Starting flipper-server ..."
|
||||
"$NODE_PATH" . "$@"
|
||||
"$NODE_PATH" . "$@" &
|
||||
|
||||
# Wait for the Flipper HTTP server to start listening
|
||||
while ! curl -s http://localhost:52342 > /dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user