Skip to content

Commit

Permalink
Merge 061ff74 into 5e9b06a
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardkkt authored May 1, 2021
2 parents 5e9b06a + 061ff74 commit 97b7202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-wg-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ set -e
GOPATH=`pwd` go get -v -d golang.zx2c4.com/wireguard

# Build
GOPATH=`pwd` GOOS=linux GOARCH=amd64 go build -v -o wireguard-go `find . -type d -name "wireguard"`
OLD_PATH=`pwd`
NEW_PATH=`dirname $(find . -type f -name "go.mod" | grep "wireguard")`
cd ${NEW_PATH}
GOPATH=${OLD_PATH} GOOS=linux GOARCH=amd64 go build -v -o "${OLD_PATH}/wireguard-go"

0 comments on commit 97b7202

Please sign in to comment.