diff --git a/script/build-app b/script/build-app index bff6415c..557e6c51 100755 --- a/script/build-app +++ b/script/build-app @@ -12,6 +12,7 @@ fi export BASE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/../" && pwd )" export OS_NAME=$(node -e "console.log(os.platform())") export OS_ARCH=$(node -e "console.log(os.arch())") +export ELECTRON_VERSION=${ELECTRON_VERSION:-1.8.2} if [ ! -f $BASE_PATH/script/build-app-$OS_NAME ]; then echo "$OS_NAME is not currently supported." >&2 diff --git a/script/build-app-darwin b/script/build-app-darwin index 5b81b14c..384c8633 100755 --- a/script/build-app-darwin +++ b/script/build-app-darwin @@ -9,7 +9,6 @@ cleanup_macos() { trap cleanup_macos EXIT -ELECTRON_VERSION=${ELECTRON_VERSION:-1.6.14} BIN_PATH=build/app/Beehive-$OS_NAME-$OS_ARCH/Beehive.app/Contents/MacOS RES_PATH=build/app/Beehive-$OS_NAME-$OS_ARCH/Beehive.app/Contents/Resources icns_file=$($BASE_PATH/script/build-icns) diff --git a/script/build-app-linux b/script/build-app-linux new file mode 100755 index 00000000..91a9235a --- /dev/null +++ b/script/build-app-linux @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +cleanup_linux() { + true +} + +trap cleanup_linux EXIT + +nativefier -e $ELECTRON_VERSION --name Beehive http://localhost:8181 build/app +mkdir -p build/app +cp beehive build/app +chmod +x build/app/beehive