-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_installer.bat
More file actions
68 lines (58 loc) · 1.66 KB
/
Copy pathbuild_installer.bat
File metadata and controls
68 lines (58 loc) · 1.66 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
@echo off
echo ========================================
echo Html To Video Pixie v1.0.0 Build Script
echo ========================================
REM Clean old files
if exist dist rmdir /s /q dist
if exist build rmdir /s /q build
if exist installer_build rmdir /s /q installer_build
if exist *.spec del *.spec
echo.
echo [1/2] Building main program...
pyinstaller --onefile --windowed --name "HtmlToVideoPixie" ^
--icon logo.ico ^
--add-data "logo.png;." ^
--add-data "logo.ico;." ^
--add-data "config;config" ^
--add-data "ffmpeg.exe;." ^
main_tkinter.py
if errorlevel 1 (
echo Main program build failed!
pause
exit /b 1
)
echo.
echo [2/2] Building installer (with all files)...
pyinstaller --onefile --windowed --name "HtmlToVideoPixieInstaller" ^
--icon logo.ico ^
--add-data "logo.png;." ^
--add-data "logo.ico;." ^
--add-data "README.md;." ^
--add-data "LICENSE;." ^
--add-data "config;config" ^
--add-data "core;core" ^
--add-data "dist\HtmlToVideoPixie.exe;." ^
--add-data "ffmpeg.exe;." ^
installer.py
if errorlevel 1 (
echo Installer build failed!
pause
exit /b 1
)
echo.
echo [3/3] Organizing output files...
REM Create installer_build directory
mkdir installer_build
REM Copy installer only
copy dist\HtmlToVideoPixieInstaller.exe installer_build\
REM Clean build directories
rmdir /s /q build
rmdir /s /q dist
del *.spec 2>nul
echo.
echo ========================================
echo Build completed!
echo Output: installer_build\HtmlToVideoPixieInstaller.exe
echo ========================================
echo.
pause