-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
77 lines (70 loc) 路 2.25 KB
/
Copy pathbuild.bat
File metadata and controls
77 lines (70 loc) 路 2.25 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
70
71
72
73
74
75
76
77
@echo off
echo ========================================
echo StreamVault Build Script
echo ========================================
echo.
REM Check if PyInstaller is installed
python -m PyInstaller --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] PyInstaller not found. Installing...
pip install pyinstaller
)
REM Clean previous builds
echo [1/3] Cleaning previous builds...
if exist "build" rmdir /s /q "build"
if exist "dist" rmdir /s /q "dist"
echo [OK] Clean complete
echo.
REM Build executables with PyInstaller
echo [2/3] Building executables with PyInstaller...
python -m PyInstaller StreamVault.spec --clean
if %errorlevel% neq 0 (
echo [ERROR] PyInstaller build failed for StreamVault!
pause
exit /b 1
)
python -m PyInstaller Backend.spec --clean
if %errorlevel% neq 0 (
echo [ERROR] PyInstaller build failed for backend!
pause
exit /b 1
)
echo [OK] Executable built successfully
echo.
REM Build installer with Inno Setup
echo [3/3] Building installer with Inno Setup...
if exist "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" (
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" installer.iss
) else if exist "C:\Program Files\Inno Setup 6\ISCC.exe" (
"C:\Program Files\Inno Setup 6\ISCC.exe" installer.iss
) else if exist "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" (
"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" installer.iss
) else if exist "C:\Program Files\Inno Setup 5\ISCC.exe" (
"C:\Program Files\Inno Setup 5\ISCC.exe" installer.iss
) else (
echo [WARNING] Inno Setup not found in standard locations.
echo Please install Inno Setup from https://jrsoftware.org/isdl.php
echo Or run ISCC.exe manually: ISCC.exe installer.iss
echo.
echo The executable has been built in dist\StreamVault.exe
pause
exit /b 0
)
if %errorlevel% neq 0 (
echo [ERROR] Inno Setup build failed!
pause
exit /b 1
)
echo.
echo ========================================
echo Build Complete!
echo ========================================
echo Installer: Output\StreamVault-Setup.exe
echo Executable: dist\StreamVault.exe
echo.
echo You can now run the installer to install StreamVault.
echo After installation, StreamVault will be available in:
echo - Start Menu (can be pinned)
echo - Desktop shortcut
echo.
pause