-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild_exe.bat
More file actions
69 lines (61 loc) · 1.87 KB
/
Copy pathbuild_exe.bat
File metadata and controls
69 lines (61 loc) · 1.87 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@echo off
REM Build script for creating GGUF Loader executable on Windows (WITH ADDON SUPPORT)
echo ========================================
echo GGUF Loader - Executable Builder
echo WITH ADDON SUPPORT (Floating Chat)
echo ========================================
echo.
REM Check if virtual environment exists
if not exist "venv\Scripts\activate.bat" (
echo [ERROR] Virtual environment not found!
echo Please run: python -m venv venv
echo Then activate it and install requirements
pause
exit /b 1
)
REM Activate virtual environment
echo [1/4] Activating virtual environment...
call venv\Scripts\activate.bat
REM Install PyInstaller if not already installed
echo.
echo [2/4] Installing PyInstaller...
pip install pyinstaller
REM Clean previous builds
echo.
echo [3/4] Cleaning previous builds...
if exist "build" rmdir /s /q build
if exist "dist" rmdir /s /q dist
REM Build executable
echo.
echo [4/4] Building executable...
pyinstaller build_exe.spec
REM Check if build was successful
if exist "dist\GGUFLoader_WithAddons.exe" (
echo.
echo ========================================
echo BUILD SUCCESSFUL!
echo ========================================
echo.
echo Your SINGLE EXECUTABLE file is located at:
echo dist\GGUFLoader_WithAddons.exe
echo.
echo This is a STANDALONE executable that includes:
echo - Full GGUF Loader functionality
echo - Addon system support
echo - Floating Chat addon
echo - All Python dependencies
echo - All DLL files
echo - No installation required
echo.
echo Just share this ONE file - users can run it directly
echo File size: Large 100-300 MB but completely portable
echo.
) else (
echo.
echo ========================================
echo BUILD FAILED!
echo ========================================
echo Please check the error messages above.
echo.
)
pause