Skip to content

Commit

Permalink
More robust startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiojr committed Apr 15, 2017
1 parent 6aeb69c commit 09c12b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/build-app
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ if [ "$OS_NAME" = "darwin" ]; then

cat > $BIN_PATH/Beehive << "EOF"
#!/bin/bash
set -e
BASE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
LIBRARY_PATH=$HOME/Library/Application\ Support/Beehive
mkdir -p $LIBRARY_PATH
$BASE_PATH/beehived --config $LIBRARY_PATH/beehive.conf &
$BASE_PATH/beehived --config "$LIBRARY_PATH/beehive.conf" &
trap "killall beehived" EXIT
$BASE_PATH/Beehive.bin
EOF
chmod +x build/app/Beehive-$OS_NAME-$OS_ARCH/Beehive.app/Contents/MacOS/Beehive
Expand Down

0 comments on commit 09c12b9

Please sign in to comment.