Replace all emojis with ASCII status indicators

Replaced all emoji characters with standard ASCII status prefixes
to prevent encoding issues on Windows systems:
- ✓/ → [OK]/[ERROR]
- ⚠️ → [WARN]
- 📦/🔨/🧹/⬇️/📥 → [INFO]

This ensures the script works correctly on all Windows configurations
regardless of console encoding settings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Stu Leak 2025-12-04 17:29:33 -05:00
parent 15fc89fa1b
commit 0bbb5e8dbf

View File

@ -11,12 +11,12 @@ REM Detect Go
REM ---------------------------- REM ----------------------------
where go >nul 2>&1 where go >nul 2>&1
if %ERRORLEVEL% neq 0 ( if %ERRORLEVEL% neq 0 (
echo ❌ ERROR: Go is not installed or not in PATH. echo [ERROR] Go is not installed or not in PATH.
echo Download Go from: https://go.dev/dl/ echo Download Go from: https://go.dev/dl/
exit /b 1 exit /b 1
) )
echo 📦 Go version: echo [INFO] Go version:
go version go version
echo. echo.
@ -28,10 +28,10 @@ where winget >nul 2>&1
set WINGET_CHECK=!ERRORLEVEL! set WINGET_CHECK=!ERRORLEVEL!
if !WINGET_CHECK! equ 0 ( if !WINGET_CHECK! equ 0 (
set WINGET_AVAILABLE=1 set WINGET_AVAILABLE=1
echo winget found ^(automatic installation available^) echo [OK] winget found ^(automatic installation available^)
) else ( ) else (
echo ⚠️ winget not found ^(manual installation will be required^) echo [WARN] winget not found ^(manual installation will be required^)
echo To enable automatic installation, update to Windows 10 1809+ or Windows 11 echo To enable automatic installation, update to Windows 10 1809+ or Windows 11
) )
echo. echo.
@ -41,10 +41,10 @@ REM ----------------------------
where git >nul 2>&1 where git >nul 2>&1
set GIT_CHECK=!ERRORLEVEL! set GIT_CHECK=!ERRORLEVEL!
if !GIT_CHECK! equ 0 ( if !GIT_CHECK! equ 0 (
echo Git found echo [OK] Git found
git --version git --version
) else ( ) else (
echo ⚠️ Git not found ^(recommended for development^) echo [WARN] Git not found ^(recommended for development^)
if !WINGET_AVAILABLE! equ 1 ( if !WINGET_AVAILABLE! equ 1 (
echo. echo.
@ -53,16 +53,16 @@ if !GIT_CHECK! equ 0 (
if /I "!install_git!"=="Y" ( if /I "!install_git!"=="Y" (
echo. echo.
echo 📥 Installing Git via winget... echo [INFO] Installing Git via winget...
winget install -e --id=Git.Git winget install -e --id=Git.Git
set GIT_INSTALL_RESULT=!ERRORLEVEL! set GIT_INSTALL_RESULT=!ERRORLEVEL!
if !GIT_INSTALL_RESULT! equ 0 ( if !GIT_INSTALL_RESULT! equ 0 (
echo Git installed successfully! echo [OK] Git installed successfully!
echo Please restart your terminal and run this script again. echo Please restart your terminal and run this script again.
exit /b 0 exit /b 0
) else ( ) else (
echo Failed to install Git automatically. echo [ERROR] Failed to install Git automatically.
echo Please install manually from: https://git-scm.com/ echo Please install manually from: https://git-scm.com/
) )
) )
@ -78,7 +78,7 @@ REM ----------------------------
where gcc >nul 2>&1 where gcc >nul 2>&1
set GCC_CHECK=!ERRORLEVEL! set GCC_CHECK=!ERRORLEVEL!
if !GCC_CHECK! neq 0 ( if !GCC_CHECK! neq 0 (
echo ⚠️ WARNING: GCC not found. CGO requires a C compiler. echo [WARN] GCC not found. CGO requires a C compiler.
echo. echo.
echo VideoTools requires MinGW-w64 to build on Windows. echo VideoTools requires MinGW-w64 to build on Windows.
echo. echo.
@ -89,33 +89,33 @@ if !GCC_CHECK! neq 0 (
if /I "!install_gcc!"=="Y" ( if /I "!install_gcc!"=="Y" (
echo. echo.
echo 📥 Installing MinGW-w64 via winget... echo [INFO] Installing MinGW-w64 via winget...
echo This may take a few minutes... echo This may take a few minutes...
winget install -e --id=MSYS2.MSYS2 winget install -e --id=MSYS2.MSYS2
set MSYS2_INSTALL_RESULT=!ERRORLEVEL! set MSYS2_INSTALL_RESULT=!ERRORLEVEL!
if !MSYS2_INSTALL_RESULT! equ 0 ( if !MSYS2_INSTALL_RESULT! equ 0 (
echo MSYS2 installed successfully! echo [OK] MSYS2 installed successfully!
echo. echo.
echo 📦 Installing GCC toolchain... echo [INFO] Installing GCC toolchain...
C:\msys64\usr\bin\bash.exe -lc "pacman -S --noconfirm mingw-w64-x86_64-gcc" C:\msys64\usr\bin\bash.exe -lc "pacman -S --noconfirm mingw-w64-x86_64-gcc"
set GCC_INSTALL_RESULT=!ERRORLEVEL! set GCC_INSTALL_RESULT=!ERRORLEVEL!
if !GCC_INSTALL_RESULT! equ 0 ( if !GCC_INSTALL_RESULT! equ 0 (
echo GCC installed successfully! echo [OK] GCC installed successfully!
echo. echo.
echo 🔧 Adding MinGW to PATH for this session... echo [INFO] Adding MinGW to PATH for this session...
set "PATH=C:\msys64\mingw64\bin;!PATH!" set "PATH=C:\msys64\mingw64\bin;!PATH!"
echo Setup complete! Continuing with build... echo [OK] Setup complete! Continuing with build...
echo. echo.
) else ( ) else (
echo Failed to install GCC. Please install manually. echo [ERROR] Failed to install GCC. Please install manually.
echo Visit: https://www.msys2.org/ echo Visit: https://www.msys2.org/
exit /b 1 exit /b 1
) )
) else ( ) else (
echo Failed to install MSYS2. Please install manually. echo [ERROR] Failed to install MSYS2. Please install manually.
echo Visit: https://www.msys2.org/ echo Visit: https://www.msys2.org/
exit /b 1 exit /b 1
) )
@ -128,7 +128,7 @@ if !GCC_CHECK! neq 0 (
REM Show manual installation instructions if we get here REM Show manual installation instructions if we get here
echo. echo.
echo GCC is required to build VideoTools on Windows. echo [ERROR] GCC is required to build VideoTools on Windows.
echo. echo.
echo Please install MinGW-w64 manually: echo Please install MinGW-w64 manually:
echo 1. Install MSYS2 from https://www.msys2.org/ echo 1. Install MSYS2 from https://www.msys2.org/
@ -139,7 +139,7 @@ if !GCC_CHECK! neq 0 (
exit /b 1 exit /b 1
) )
) else ( ) else (
echo GCC found: echo [OK] GCC found:
gcc --version | findstr /C:"gcc" gcc --version | findstr /C:"gcc"
echo. echo.
) )
@ -152,28 +152,28 @@ pushd "%~dp0\.."
REM ---------------------------- REM ----------------------------
REM Clean previous build REM Clean previous build
REM ---------------------------- REM ----------------------------
echo 🧹 Cleaning previous Windows build... echo [INFO] Cleaning previous Windows build...
if exist VideoTools.exe del /f VideoTools.exe if exist VideoTools.exe del /f VideoTools.exe
echo Cache cleaned echo [OK] Cache cleaned
echo. echo.
REM ---------------------------- REM ----------------------------
REM Download go dependencies REM Download go dependencies
REM ---------------------------- REM ----------------------------
echo ⬇️ Downloading dependencies... echo [INFO] Downloading dependencies...
go mod download go mod download
if %ERRORLEVEL% neq 0 ( if %ERRORLEVEL% neq 0 (
echo Failed to download dependencies. echo [ERROR] Failed to download dependencies.
exit /b 1 exit /b 1
) )
echo Dependencies downloaded echo [OK] Dependencies downloaded
echo. echo.
REM ---------------------------- REM ----------------------------
REM Build VideoTools (Windows GUI mode) REM Build VideoTools (Windows GUI mode)
REM Note: CGO is required for Fyne/OpenGL on Windows REM Note: CGO is required for Fyne/OpenGL on Windows
REM ---------------------------- REM ----------------------------
echo 🔨 Building VideoTools.exe... echo [INFO] Building VideoTools.exe...
REM Enable CGO for Windows build (required for Fyne) REM Enable CGO for Windows build (required for Fyne)
set CGO_ENABLED=1 set CGO_ENABLED=1
@ -184,19 +184,19 @@ go build ^
. .
if %ERRORLEVEL% neq 0 ( if %ERRORLEVEL% neq 0 (
echo Build failed! echo [ERROR] Build failed!
popd popd
exit /b 1 exit /b 1
) )
echo Build successful! echo [OK] Build successful!
echo. echo.
REM ---------------------------- REM ----------------------------
REM Show file size REM Show file size
REM ---------------------------- REM ----------------------------
for %%A in (VideoTools.exe) do set FILESIZE=%%~zA for %%A in (VideoTools.exe) do set FILESIZE=%%~zA
echo Output: VideoTools.exe (Size: !FILESIZE! bytes) echo Output: VideoTools.exe ^(Size: !FILESIZE! bytes^)
echo. echo.
REM ---------------------------- REM ----------------------------