|
| 1 | +################################################################################################### |
| 2 | +# Release_CLI_Windows_x64.ps1 - PowerShell script for creating Windows QCli packages (x64) # |
| 3 | +# # |
| 4 | +# Script requirements: # |
| 5 | +# - Built qctools_AllInclusive sources # |
| 6 | +# - Microsoft Visual Studio environment # |
| 7 | +################################################################################################### |
| 8 | + |
| 9 | +# setup environment |
| 10 | +$ErrorActionPreference="Stop" |
| 11 | +$build_path=$Pwd |
| 12 | +$version=Get-Content -Path $build_path\qctools\Project\version.txt |
| 13 | + |
| 14 | +# binary archive |
| 15 | +Write-Output "Create CLI archive" |
| 16 | +if (Test-Path -Path QCli_${version}_Windows_x64) { |
| 17 | + Remove-Item -Force -Recurse -Path QCli_${version}_Windows_x64 |
| 18 | +} |
| 19 | +New-Item -ItemType directory -Name QCli_${version}_Windows_x64 |
| 20 | +Push-Location -Path QCli_${version}_Windows_x64 |
| 21 | + Copy-Item -Path $build_path\qctools\History.txt |
| 22 | + Copy-Item -Path $build_path\qctools\License.html |
| 23 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\qcli.exe |
| 24 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\Qt6Core.dll |
| 25 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\Qt6Gui.dll |
| 26 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\Qt6Multimedia.dll |
| 27 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\Qt6Network.dll |
| 28 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\Qt6Svg.dll |
| 29 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\d3dcompiler_47.dll |
| 30 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\opengl32sw.dll |
| 31 | + New-Item -ItemType directory -Name iconengines |
| 32 | + Push-Location -Path iconengines |
| 33 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\iconengines\qsvgicon.dll |
| 34 | + Pop-Location |
| 35 | + New-Item -ItemType directory -Name imageformats |
| 36 | + Push-Location -Path imageformats |
| 37 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\imageformats\qjpeg.dll |
| 38 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\imageformats\qsvg.dll |
| 39 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\imageformats\qico.dll |
| 40 | + Pop-Location |
| 41 | + New-Item -ItemType directory -Name multimedia |
| 42 | + Push-Location -Path multimedia |
| 43 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\multimedia\windowsmediaplugin.dll |
| 44 | + Pop-Location |
| 45 | + New-Item -ItemType directory -Name networkinformation |
| 46 | + Push-Location -Path networkinformation |
| 47 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\networkinformation\qnetworklistmanager.dll |
| 48 | + Pop-Location |
| 49 | + New-Item -ItemType directory -Name platforms |
| 50 | + Push-Location -Path platforms |
| 51 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\platforms\qwindows.dll |
| 52 | + Pop-Location |
| 53 | + New-Item -ItemType directory -Name tls |
| 54 | + Push-Location -Path tls |
| 55 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\tls\qcertonlybackend.dll |
| 56 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\tls\qopensslbackend.dll |
| 57 | + Copy-Item -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\tls\qschannelbackend.dll |
| 58 | + Pop-Location |
| 59 | + Copy-Item -Path $build_path\ffmpeg\bin\avdevice-*.dll |
| 60 | + Copy-Item -Path $build_path\ffmpeg\bin\avcodec-*.dll |
| 61 | + Copy-Item -Path $build_path\ffmpeg\bin\avfilter-*.dll |
| 62 | + Copy-Item -Path $build_path\ffmpeg\bin\avformat-*.dll |
| 63 | + Copy-Item -Path $build_path\ffmpeg\bin\avutil-*.dll |
| 64 | + Copy-Item -Path $build_path\ffmpeg\bin\postproc-*.dll |
| 65 | + Copy-Item -Path $build_path\ffmpeg\bin\swresample-*.dll |
| 66 | + Copy-Item -Path $build_path\ffmpeg\bin\swscale-*.dll |
| 67 | + Copy-Item -Path $build_path\output\bin\freetype-*.dll |
| 68 | + Copy-Item -Path $build_path\output\bin\harfbuzz.dll |
| 69 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\concrt140.dll |
| 70 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\msvcp140.dll |
| 71 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\msvcp140_1.dll |
| 72 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\msvcp140_2.dll |
| 73 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\msvcp140_atomic_wait.dll |
| 74 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\msvcp140_codecvt_ids.dll |
| 75 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\vccorlib140.dll |
| 76 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\vcruntime140.dll |
| 77 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\vcruntime140_1.dll |
| 78 | + Copy-Item -Path $Env:VCToolsRedistDir\x64\Microsoft.VC143.CRT\vcruntime140_threads.dll |
| 79 | +Pop-Location |
| 80 | +if (Test-Path -Path QCli_${version}_Windows_x64.zip) { |
| 81 | + Remove-Item -Force -Path QCli_${version}_Windows_x64.zip |
| 82 | +} |
| 83 | +Compress-Archive -Path QCli_${version}_Windows_x64\* -DestinationPath QCli_${version}_Windows_x64.zip |
| 84 | + |
| 85 | +# debug symbols archive |
| 86 | +Write-Output "Create CLI debug symbols archive" |
| 87 | +if (Test-Path -Path QCli_${version}_Windows_x64_DebugInfo.zip) { |
| 88 | + Remove-Item -Force -Path QCli_${version}_Windows_x64_DebugInfo.zip |
| 89 | +} |
| 90 | +Compress-Archive -Path $build_path\qctools\Project\QtCreator\build\qctools-cli\release\QCli.pdb -DestinationPath QCli_${version}_Windows_x64_DebugInfo.zip |
0 commit comments