run daemon install even in local build

This commit is contained in:
Alex Grintsvayg 2017-04-19 15:16:29 -04:00
parent 1853c688da
commit 2e9e0f129b

View file

@ -72,17 +72,15 @@ npm install
# daemon and cli #
####################
if [ "$FULL_BUILD" == "true" ]; then
if $OSX; then
OSNAME="macos"
else
OSNAME="linux"
fi
DAEMON_URL="$(cat "$BUILD_DIR/DAEMON_URL" | sed "s/OSNAME/${OSNAME}/")"
wget --quiet "$DAEMON_URL" -O "$BUILD_DIR/daemon.zip"
unzip "$BUILD_DIR/daemon.zip" -d "$ROOT/app/dist/"
rm "$BUILD_DIR/daemon.zip"
if $OSX; then
OSNAME="macos"
else
OSNAME="linux"
fi
DAEMON_URL="$(cat "$BUILD_DIR/DAEMON_URL" | sed "s/OSNAME/${OSNAME}/")"
wget --quiet "$DAEMON_URL" -O "$BUILD_DIR/daemon.zip"
unzip "$BUILD_DIR/daemon.zip" -d "$ROOT/app/dist/"
rm "$BUILD_DIR/daemon.zip"
###################
# Build the app #
@ -116,4 +114,4 @@ if [ "$FULL_BUILD" == "true" ]; then
echo 'Build and packaging complete.'
else
echo 'Build complete. Run `./node_modules/.bin/electron app` to launch the app'
fi
fi