gitlab.com/aquachain/aquachain@v1.17.16-rc3.0.20221018032414-e3ddf1e1c055/make.bat (about) 1 :: Copyright 2019 The Aquachain Authors. All rights reserved. 2 :: Use of this source code is governed by a BSD-style 3 :: license that can be found in the LICENSE file. 4 5 @echo off 6 7 set GOBUILDFAIL=0 8 if exist make.bat goto ok 9 echo Must run make.bat from Aquachain source directory. 10 goto fail 11 12 :ok 13 set CGO_ENABLED=0 14 set GO111MODULE=on 15 echo Building Aquachain (aquachain.exe in Desktop) 16 go.exe build -v -mod vendor -o "%USERPROFILE%\Desktop\aquachain.exe" .\cmd\aquachain 17 if errorlevel 1 goto fail 18 if errorlevel 1 goto fail 19 goto end 20 21 :fail 22 set GOBUILDFAIL=1 23 if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL% 24 :end 25 echo "Successfully Built 'aquachain.exe on your desktop"