File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
921mkdir release
1022cd release
@@ -34,6 +46,7 @@ rmdir /S /Q bearer iconengines imageformats translations platforminputcontexts q
3446rm -f Qt6Pdf.dll Qt6VirtualKeyboard.dll Qt6Quick3DUtils.dll Qt6Quick.dll Qt6QmlModels.dll Qt6Svg.dll
3547rm -f Qt6OpenGL.dll opengl32sw.dll dxcompiler.dll d3dcompiler_47.dll dxil.dll
3648rm -f Qt6QmlWorkerScript.dll Qt6QmlMeta.dll
49+ rm -f Qt6Lottie.dll Qt6LottieVectorImageGenerator.dll Qt6QuickVectorImageGenerator.dll
3750rm -f vc_redist.x64.exe
3851rm -f resource\layermap.bin
3952@ echo It is OK if The system cannot find the file specified.
You can’t perform that action at this time.
0 commit comments