Windows-build script update.

This commit is contained in:
JaxxMoss 2025-05-09 00:34:25 +02:00
parent 2fe1266c34
commit 5dbd66ea0c

View file

@ -1,4 +1,5 @@
@echo off @echo off
setlocal enabledelayedexpansion
REM Step 1: Build Macrame Go application for Windows REM Step 1: Build Macrame Go application for Windows
echo Building Macrame Go Application for Windows... echo Building Macrame Go Application for Windows...
@ -9,7 +10,7 @@ IF %ERRORLEVEL% NEQ 0 (
echo Go build failed! echo Go build failed!
exit /b %ERRORLEVEL% exit /b %ERRORLEVEL%
) ELSE ( ) ELSE (
echo Go build was succesful! echo Go build was successful!
) )
REM Step 2: Build Macrame Vue UI REM Step 2: Build Macrame Vue UI
@ -30,10 +31,12 @@ IF %ERRORLEVEL% NEQ 0 (
exit /b %ERRORLEVEL% exit /b %ERRORLEVEL%
) )
cd ..
REM Step 3: Cleanup root directory of build files. REM Step 3: Cleanup root directory of build files.
echo Cleaning up root directory... echo Cleaning up root directory...
echo Removing directories: app, ui and build-scripts echo Removing directories: app, ui, and build-scripts
rmdir /s /q app rmdir /s /q app
rmdir /s /q ui rmdir /s /q ui
rmdir /s /q build-scripts rmdir /s /q build-scripts
@ -47,5 +50,3 @@ for %%F in (*) do (
) )
echo Build and cleanup complete. echo Build and cleanup complete.