Merge pull request 'added simple build script' (#13) from jahway603/lightwalletd:master into jahway

Reviewed-on: https://git.hush.is/hush/lightwalletd/pulls/13
This commit is contained in:
jahway603
2021-08-08 05:10:51 +00:00

17
build.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Copyright 2021 The Hush Developers
# Released under GPLv3
# Check if go is installed on system and exits if it is not
if ! [ -x "$(command -v go)" ]; then
echo 'Error: go is not installed. Install go and try again.' >&2
exit 1
fi
# now to compiling...
cd `pwd`/cmd/server
go build -o lightwalletd main.go
# move compiled main.go to lightwalletd
mv lightwalletd `pwd`/../../lightwalletd
echo "lightwalletd is now compiled for you."
echo "for options, run ./lightwalletd --help"