Files
lightwalletd/build.sh
2021-09-29 00:50:38 -04:00

18 lines
547 B
Bash
Executable File

#!/usr/bin/env 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...
echo "You have go installed, so starting to compile hush lightwalletd for you..."
cd `pwd`/cmd/server
go build -o lightwalletd main.go
mv lightwalletd `pwd`/../../lightwalletd
echo "lightwalletd is now compiled for you."
echo "for options, run ./lightwalletd --help"