Skip to content

Commit

Permalink
[WiP] Added linux app script
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiojr committed Nov 10, 2019
1 parent 96c0fbc commit 388184b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions script/build-app
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion script/build-app-darwin
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 13 additions & 0 deletions script/build-app-linux
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 388184b

Please sign in to comment.