Skip to content
Snippets Groups Projects
Commit 2e9c3e96 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

translations: fix powershell script to support vs 2017/2019 Qt

Change-Id: I7d36fccee7b34b21a68cd9808fb3cc46b1d0f7d9
parent accada53
No related branches found
No related tags found
No related merge requests found
[cmdletbinding()]
param (
[string]$qtver
);
param ([string]$qtver);
$clientDir = split-path -parent $MyInvocation.MyCommand.Definition
$qtver = If ($qtver) { $qtver } Else { "5.15.0" }
$qtMinorVer = $qtver.split('.')[1]
$qtMsvcDir = If (([int]$qtMinorVer) -le 14) {"msvc2017_64"} Else {"msvc2019_64"}
$QtDir = "C:\Qt\$qtver\$qtMsvcDir"
$tsFileNames = Get-ChildItem -Path "$clientDir\translations" -Recurse -Include *.ts
$QtDir = "C:\Qt\$qtver\msvc2019_64"
if (-not(Test-Path -Path $QtDir)) {
$QtDir = "C:\Qt\$qtver\msvc2017_64"
}
$lupdate = "$QtDir\bin\lupdate.exe"
$tsFileNames = Get-ChildItem -Path "$clientDir\translations" -Recurse -Include *.ts
Invoke-Expression("$lupdate $clientDir\src -ts $tsFileNames -no-obsolete")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment