-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage_app.bat
More file actions
52 lines (42 loc) · 1.2 KB
/
package_app.bat
File metadata and controls
52 lines (42 loc) · 1.2 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
@echo off
echo Enhanced Theme Studio - Packaging Script
echo ========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed or not in PATH
goto :error
)
echo Step 1: Creating virtual environment...
python -m venv venv
call venv\Scripts\activate.bat
echo Step 2: Installing required packages...
pip install -U pip wheel setuptools build
pip install PyQt6 numpy pillow pyinstaller
echo Step 3: Creating app icon...
python create_icon_script.py
echo Step 4: Building Python package...
python -m build
echo Step 5: Creating executable with PyInstaller...
pyinstaller pyinstaller.spec
echo.
echo ========================================
echo Packaging complete!
echo.
echo Python package available in: dist/
echo Executable available in: dist/EnhancedThemeStudio/
echo.
echo To install the package locally:
echo pip install -e .
echo.
echo To run the executable:
echo dist\EnhancedThemeStudio\EnhancedThemeStudio.exe
echo ========================================
call venv\Scripts\deactivate.bat
goto :end
:error
echo An error occurred during packaging.
echo Please check the output above for more information.
:end
pause