From 26151e494a8c15eac9acbf895ff2f16eff614124 Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Thu, 16 Nov 2023 21:57:29 +1100 Subject: [PATCH] Show the built CLI's version on Windows too We have to do this in a Bash shell, since in the cmd shell Qt will show the version in a message box (which is, debatably, poor Qt behaviour; eg https://bugreports.qt.io/browse/QTBUG-114530). --- .github/workflows/build.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 64f818d97..bdc239117 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -367,8 +367,12 @@ jobs: copy /v /b src\cli\dokit.exe /b portable cd portable windeployqt --compiler-runtime --release --verbose 2 dokit.exe ${{ matrix.dll }} - :: dokit.exe --version + :: dokit.exe --version # This would hang the job, because Qt will show a message box. working-directory: ${{ runner.temp }} + - name: Check portable version + if: matrix.arch != 'arm64' + shell: bash + run: '"$RUNNER_TEMP/portable/dokit.exe" --version' - name: Setup artifacts shell: bash run: echo "dokitVersion=$(cat "$RUNNER_TEMP/version.txt")" >> $GITHUB_ENV