Python: Added QT sample app (PySide6)

This commit is contained in:
JessicaTegner
2025-08-23 14:38:27 +02:00
committed by Caelan
parent 935a36c6ea
commit ea50914cea
7 changed files with 662 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
@echo off
setlocal enabledelayedexpansion
if "%~1"=="" (
echo Version number is required.
echo Usage: build.bat [version] [extra_args...]
exit /b 1
)
cd %~dp0
echo.
echo Installing dependencies
uv sync --reinstall-package velopack
if errorlevel 1 exit /b 1
echo update_url = R"%~dp0releases" > _build_config.py
echo.
echo Building Python application
uv run pyinstaller --onedir --windowed --noconfirm main.py
if errorlevel 1 exit /b 1
echo.
echo Building Velopack Release v%~1
mkdir publish 2>nul
xcopy /E /I /Y dist\main\* publish\ >nul
vpk pack --packId VelopackPythonPySide6App --mainExe main.exe -o releases --packDir publish --packVersion %*
if errorlevel 1 exit /b 1
echo.
echo Cleaning up
rmdir /S /Q build 2>nul
rmdir /S /Q dist 2>nul
rmdir /S /Q publish 2>nul
del /Q main.spec 2>nul