diff --git a/build/build.sh b/build/build.sh index 60eb60759..1b3340054 100755 --- a/build/build.sh +++ b/build/build.sh @@ -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 \ No newline at end of file +fi