-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_binary.bat
More file actions
47 lines (38 loc) · 1.26 KB
/
Copy pathbuild_binary.bat
File metadata and controls
47 lines (38 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
REM S3Tester Binary Build Script for Windows
echo 🔧 S3Tester Binary Build Script
echo ================================
REM Check if virtual environment is active
if not defined VIRTUAL_ENV (
echo ❌ Virtual environment not detected. Please activate your virtual environment first:
echo venv\Scripts\activate
exit /b 1
)
echo ✅ Virtual environment detected: %VIRTUAL_ENV%
REM Install build dependencies
echo 📦 Installing build dependencies...
pip install -e ".[build]"
REM Clean previous builds
echo 🧹 Cleaning previous build artifacts...
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
for /d /r %%d in (__pycache__) do @if exist "%%d" rmdir /s /q "%%d"
del /s /q *.pyc >nul 2>&1
REM Run PyInstaller
echo 🔨 Building binary executable...
pyinstaller s3tester.spec
REM Check if build was successful
if exist "dist\s3tester.exe" (
echo ✅ Binary executable built successfully!
echo 📍 Location: dist\
dir dist\
echo.
echo 🚀 Test the executable:
echo dist\s3tester.exe --version
echo dist\s3tester.exe --help
) else (
echo ❌ Build failed! Check the output above for errors.
exit /b 1
)
echo.
echo ✨ Build completed successfully!