From 16b4f90cb0196d719694bf43843352b0ba1d209e Mon Sep 17 00:00:00 2001 From: Wraient Date: Sun, 27 Oct 2024 00:38:35 +0530 Subject: [PATCH] I beg you, pls work --- .github/workflows/ci-cd.yml | 4 +--- Build/buildwindows | 14 +++++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 94e8821..10e6cfb 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -75,9 +75,7 @@ jobs: - name: Build Windows binary # Run the build script to generate curd.exe run: | - cd Build # Navigate to Build directory - chmod +x buildwindows - ./buildwindows + .\Build\buildwindows - name: Download Inno Setup # Clean up run: | diff --git a/Build/buildwindows b/Build/buildwindows index e81ec29..df63381 100755 --- a/Build/buildwindows +++ b/Build/buildwindows @@ -1,6 +1,14 @@ +@echo off +echo Starting the build process... set GOOS=windows set GOARCH=amd64 +echo GOOS is set to %GOOS% +echo GOARCH is set to %GOARCH% +echo Building Go application... tree /F -echo Building Go application -rem Build the Go application -go build -o curd.exe ..\cmd\curd\main.go \ No newline at end of file +go build -o curd.exe .\cmd\curd\main.go +if %ERRORLEVEL% NEQ 0 ( + echo Build failed with error level %ERRORLEVEL% +) else ( + echo Build completed successfully! +)