-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_release.bat
More file actions
56 lines (49 loc) · 1.24 KB
/
build_release.bat
File metadata and controls
56 lines (49 loc) · 1.24 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
@echo off
echo ROV Control GUI - Build Script
echo ==============================
echo.
echo [1/4] Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 goto error
echo.
echo [2/4] Installing build tools...
pip install -r requirements-build.txt
if errorlevel 1 goto error
echo.
echo [3/4] Building executable...
python build_exe.py
if errorlevel 1 goto error
echo.
echo [4/4] Creating release package...
if not exist "release" mkdir release
copy "dist\ROV_Control_GUI.exe" "release\"
copy "dist\install.bat" "release\"
copy "config.ini" "release\"
copy "README.md" "release\"
copy "LICENSE" "release\"
copy "assets\icons\logo.ico" "release\"
if exist "assets" xcopy "assets" "release\assets\" /E /I
echo.
echo =====================================
echo BUILD COMPLETED SUCCESSFULLY!
echo =====================================
echo.
echo Files created in 'release' folder:
dir release /B
echo.
echo You can now:
echo 1. Test the executable: release\ROV_Control_GUI.exe
echo 2. Create a zip file for distribution
echo 3. Upload to GitHub releases
echo.
pause
goto end
:error
echo.
echo =====================================
echo BUILD FAILED!
echo =====================================
echo Please check the error messages above.
echo.
pause
:end