mirror of
git://code.qt.io/qt/qt5.git
synced 2026-05-10 04:58:08 +08:00
- the 7.18.0 has generation updates, that affect the code
generation. We already moved to 7.18.0 on Linux and MacOS CIs,
but forgot to update on Windows. See:
e5871fa6e6
Noticed the problem during the work on a 'nullable' feature,
that is not supported by 7.15.0.
Pick-to: 6.11
Change-Id: I9be758218831aae47d7cc9cb1d2dbf60795e6d27
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
28 lines
1.1 KiB
PowerShell
28 lines
1.1 KiB
PowerShell
# Copyright (C) 2025 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# openapi is needed for qtopenapi project
|
|
|
|
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
$version = "7.18.0"
|
|
|
|
$temp = "$env:tmp"
|
|
Write-Host "Fetching openapi generator ver. $version..."
|
|
$url_cache = "http://ci-files01-hki.ci.qt.io/input/qtopenapi/openapi_client_generators/openapi-generator-cli-$version.jar"
|
|
$url_official = "https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$version/openapi-generator-cli-$version.jar"
|
|
$target_file = "openapi-generator-cli.jar"
|
|
$sha1 = "8bd615a50b15ebf5be30e612af112526a6e81ac4"
|
|
|
|
Download $url_official $url_cache "$temp\$target_file"
|
|
Verify-Checksum "$temp\$target_file" $sha1
|
|
|
|
$openapi_location = "C:\Utils\qt-openapi"
|
|
Write-Host "Copying $target_file to $openapi_location"
|
|
New-Item -Path "$openapi_location" -ItemType Directory
|
|
Move-Item "$temp\$target_file" "$openapi_location\$target_file"
|
|
|
|
Prepend-Path "$openapi_location"
|
|
|
|
Write-Output "OpenAPI generator = $version" >> ~/versions.txt
|