Browse Source

updated install for zapconnect

dev
rootzoll 6 years ago
parent
commit
119926e335
  1. 18
      build.sdcard/raspbianStretchDesktop.sh
  2. 17
      home.admin/97addMobileWalletZap.sh

18
build.sdcard/raspbianStretchDesktop.sh

@ -332,6 +332,24 @@ if [ ${#installed} -eq 0 ]; then
exit 1 exit 1
fi fi
# Go is needed for ZAP connect later
echo "*** Installing Go ***"
wget https://storage.googleapis.com/golang/go1.11.linux-armv6l.tar.gz
if [ ! -f "./go1.11.linux-armv6l.tar.gz" ]
then
echo "!!! FAIL !!! Download not success."
exit 1
fi
sudo tar -C /usr/local -xzf go1.11.linux-armv6l.tar.gz
sudo rm *.gz
sudo mkdir /usr/local/gocode
sudo chmod 777 /usr/local/gocode
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/usr/local/gocode
export PATH=$PATH:$GOPATH/bin
echo ""
##### Build from Source ##### Build from Source
## To quickly catch up get latest patches if needed ## To quickly catch up get latest patches if needed
#repo="github.com/lightningnetwork/lnd" #repo="github.com/lightningnetwork/lnd"

17
home.admin/97addMobileWalletZap.sh

@ -8,14 +8,19 @@ clear
echo "*** Setup ***" echo "*** Setup ***"
echo "" echo ""
echo "Installing zapconnect. Please wait..." echo "Installing zapconnect. Please wait..."
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/usr/local/gocode
export PATH=$PATH:$GOPATH/bin
echo "" echo ""
echo "Getting github.com/LN-Zap/zapconnect ..." echo "Getting github.com/LN-Zap/zapconnect (please wait) ..."
cd $GOPATH/src/github.com/LN-Zap/zapconnect
go get -d github.com/LN-Zap/zapconnect go get -d github.com/LN-Zap/zapconnect
echo "" echo ""
echo "Building github.com/LN-Zap/zapconnect ..." echo "Building github.com/LN-Zap/zapconnect ..."
cd /home/admin/go/src/github.com/LN-Zap/zapconnect/ make
go build -o /home/admin/go/src/github.com/LN-Zap/zapconnect/zapconnect cd
sleep 3
clear clear
echo "******************************" echo "******************************"
@ -43,10 +48,10 @@ echo "*** STEP 2 : Click on Scan (make whole QR code fill camera) ***"
if [ ${#dynDomain} -eq 0 ]; then if [ ${#dynDomain} -eq 0 ]; then
# If you drop the -i parameter, zapconnect will use the external IP. # If you drop the -i parameter, zapconnect will use the external IP.
/home/admin/go/src/github.com/LN-Zap/zapconnect/zapconnect -i zapconnect -i
else else
# when dynamic domain is set # when dynamic domain is set
/home/admin/go/src/github.com/LN-Zap/zapconnect/zapconnect --host=${dynDomain} zapconnect --host=${dynDomain}
fi fi
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished." echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished."

Loading…
Cancel
Save