aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/vstools/deploy.cmd
blob: d71d54b1ed856d14ee1b0d7f467d2e645fd9036c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
::**************************************************************************************************
::Copyright (C) 2024 The Qt Company Ltd.
::SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
::**************************************************************************************************

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::deploy.cmd
:: * Copies installation package to deployment directory
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

ECHO.
%##########################%
%##% %BOLD%Deploying to %DEPLOY_DIR%\%VERSION%.%VERSION_REV%...%RESET%
IF "%VERSION_REV%" == "" (
    %##%   QtVsTools.vsix -^> qt-vsaddin-msvc%VS%-%VCVARS_ARCH%-%VERSION%.vsix
    MD "%DEPLOY_DIR%\%VERSION%.0" > NUL 2>&1
    COPY /Y QtVsTools.Package\bin\Release\QtVsTools.vsix ^
        "%DEPLOY_DIR%\%VERSION%.0\qt-vsaddin-msvc%VS%-%VCVARS_ARCH%-%VERSION%.vsix" > NUL ^
    || (%##%   %BOLD%%RED%Error copying package to deploy dir.%RESET%)
) ELSE (
    %##%   QtVsTools.vsix -^> qt-vsaddin-msvc%VS%-%VCVARS_ARCH%-%VERSION%-rev.%VERSION_REV%.vsix
    MD "%DEPLOY_DIR%\%VERSION%.%VERSION_REV%" > NUL 2>&1
    COPY /Y QtVsTools.Package\bin\Release\QtVsTools.vsix ^
        "%DEPLOY_DIR%\%VERSION%.%VERSION_REV%\qt-vsaddin-msvc%VS%-%VCVARS_ARCH%-%VERSION%-rev.%VERSION_REV%.vsix" > NUL ^
    || (%##%   %BOLD%%RED%Error copying package to deploy dir.%RESET%)
)
%##########################%