Build/buildwindows
14 lines · 343 bytes · executable
1@echo off
2echo Starting the build process...
3set GOOS=windows
4set GOARCH=amd64
5echo GOOS is set to %GOOS%
6echo GOARCH is set to %GOARCH%
7echo Building Go application...
8tree /F
9go build -o curd.exe .\cmd\curd\main.go
10if %ERRORLEVEL% NEQ 0 (
11 echo Build failed with error level %ERRORLEVEL%
12) else (
13 echo Build completed successfully!
14)