Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 01dde9e

Browse files
committed
Fix build on Mac
1 parent db0ce96 commit 01dde9e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

assets/script/build_app.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/sh
22

3+
# exit on immediately on non-zero status
4+
set -e
5+
# avoid issues with relative paths
6+
cd "$(dirname "$0")"
7+
38
# set env vars
49
GOPATH=$HOME/gocode
510
GOROOT=$HOME/go
@@ -9,9 +14,6 @@ if [ "$(uname)" == "Darwin" ]; then
914
# build electron app for macOS
1015
npm run electron-pack -- --mac
1116
else
12-
# generate release notes only once
13-
sh assets/script/release_notes.sh
14-
1517
# build binaries for windows
1618
cd assets/bin/win32
1719
env GOOS="windows" GOARCH="386" go build -tags="experimental" -v github.com/lightningnetwork/lnd

assets/script/release_notes.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
#!/usr/bin/env bash
1+
#!/bin/sh
2+
3+
# exit on immediately on non-zero status
24
set -e
35
# avoid issues with relative paths
46
cd "$(dirname "$0")"
57

8+
if [ "$(uname)" == "Darwin" ]; then
9+
echo "Cannot release on macOS"
10+
exit 0
11+
fi
12+
613
if [ -z "$(eval "echo \$GH_TOKEN")" ]; then
714
echo "Missing environment variable GH_TOKEN."
815
exit 1

0 commit comments

Comments
 (0)