Skip to content

Commit da3cf9c

Browse files
committed
Update release script
1 parent b08ebb0 commit da3cf9c

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

release.bat

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
@REM Relase script specific to Visual Studio 2022 (Community Edition) and Qt 6.9.3
1+
@REM Release script for Visual Studio 2022 (Community Edition) and Qt 6
22
@REM Z80Explorer.exe must be precompiled and stored in the root project folder
3-
@REM Run within the "Developer command prompt for VS 2022" (CMD)
4-
if not exist "Z80Explorer.exe" Goto end
5-
6-
@REM Set these paths as needed for your setup
7-
set path=C:\Qt\6.9.3\msvc2022_64\bin;%VCINSTALLDIR%;%path%
3+
@REM Run from "Developer command prompt for VS 2022"
4+
@REM Usage: release.bat <Qt-path>
5+
@REM Example: release.bat C:\Qt\6.10.1\msvc2022_64
6+
if "%~1"=="" (
7+
echo Usage: release.bat ^<Qt-path^>
8+
echo Example: release.bat C:\Qt\6.10.1\msvc2022_64
9+
goto end
10+
)
11+
if not exist "%~1\bin\windeployqt.exe" (
12+
echo ERROR: windeployqt.exe not found in %~1\bin
13+
goto end
14+
)
15+
if not exist "Z80Explorer.exe" (
16+
echo ERROR: Z80Explorer.exe not found. Build it first.
17+
goto end
18+
)
19+
set PATH=%~1\bin;%PATH%
820

921
mkdir release
1022
cd release
@@ -34,6 +46,7 @@ rmdir /S /Q bearer iconengines imageformats translations platforminputcontexts q
3446
rm -f Qt6Pdf.dll Qt6VirtualKeyboard.dll Qt6Quick3DUtils.dll Qt6Quick.dll Qt6QmlModels.dll Qt6Svg.dll
3547
rm -f Qt6OpenGL.dll opengl32sw.dll dxcompiler.dll d3dcompiler_47.dll dxil.dll
3648
rm -f Qt6QmlWorkerScript.dll Qt6QmlMeta.dll
49+
rm -f Qt6Lottie.dll Qt6LottieVectorImageGenerator.dll Qt6QuickVectorImageGenerator.dll
3750
rm -f vc_redist.x64.exe
3851
rm -f resource\layermap.bin
3952
@echo It is OK if The system cannot find the file specified.

0 commit comments

Comments
 (0)