2025-12-25 18:48:23 -08:00
|
|
|
@echo off
|
|
|
|
|
REM Build script for Windows
|
|
|
|
|
|
|
|
|
|
echo Building Local Transcription for Windows...
|
|
|
|
|
echo ==========================================
|
|
|
|
|
echo.
|
|
|
|
|
|
|
|
|
|
REM Clean previous builds
|
|
|
|
|
echo Cleaning previous builds...
|
|
|
|
|
if exist build rmdir /s /q build
|
|
|
|
|
if exist dist rmdir /s /q dist
|
|
|
|
|
|
2025-12-28 19:06:33 -08:00
|
|
|
REM Remove enum34 if present (incompatible with PyInstaller)
|
|
|
|
|
echo Removing enum34 (if present)...
|
|
|
|
|
uv pip uninstall -q enum34 2>nul
|
|
|
|
|
|
2025-12-25 18:48:23 -08:00
|
|
|
REM Build with PyInstaller
|
|
|
|
|
echo Running PyInstaller...
|
|
|
|
|
uv run pyinstaller local-transcription.spec
|
|
|
|
|
|
|
|
|
|
REM Check if build succeeded
|
|
|
|
|
if exist "dist\LocalTranscription" (
|
|
|
|
|
echo.
|
|
|
|
|
echo Build successful!
|
|
|
|
|
echo Executable location: dist\LocalTranscription\LocalTranscription.exe
|
|
|
|
|
echo.
|
|
|
|
|
echo To run the application:
|
|
|
|
|
echo cd dist\LocalTranscription
|
|
|
|
|
echo LocalTranscription.exe
|
|
|
|
|
echo.
|
|
|
|
|
echo To create a distributable package:
|
|
|
|
|
echo - Install 7-Zip or WinRAR
|
|
|
|
|
echo - Compress the dist\LocalTranscription folder to a ZIP file
|
|
|
|
|
) else (
|
|
|
|
|
echo.
|
|
|
|
|
echo Build failed!
|
|
|
|
|
exit /b 1
|
|
|
|
|
)
|