Create get_qttranslations.cmd

This commit is contained in:
Splash 2022-02-10 08:01:09 +08:00 committed by GitHub
parent 0bdadc281f
commit 327732de91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -75,9 +75,9 @@ ECHO Copying SandMan translations
mkdir %instPath%\translations\
rem copy /y %~dp0..\SandboxiePlus\SandMan\sandman_*.qm %instPath%\translations\
copy /y %~dp0..\SandboxiePlus\Build_SandMan_%archPath%\release\sandman_*.qm %instPath%\translations\
copy /y %qtPath%\translations\qt_*.qm %instPath%\translations\
copy /y %qtPath%\translations\qtbase_*.qm %instPath%\translations\
copy /y %qtPath%\translations\qtmultimedia_*.qm %instPath%\translations\
copy /y %~dp0\qttranslations\qm\qt_*.qm %instPath%\translations\
copy /y %~dp0\qttranslations\qm\qtbase_*.qm %instPath%\translations\
copy /y %~dp0\qttranslations\qm\qtmultimedia_*.qm %instPath%\translations\
copy /y %qtPath%\translations\qtscript_*.qm %instPath%\translations\
copy /y %qtPath%\translations\qtxmlpatterns_*.qm %instPath%\translations\

View File

@ -0,0 +1,8 @@
mkdir %~dp0qttranslations
mkdir %~dp0qttranslations\ts
mkdir %~dp0qttranslations\qm
set fileName=qttranslations-everywhere-src-6.2.3.zip
set downloadUrl=https://download.qt.io/archive/qt/6.2/6.2.3/submodules/%filename%
curl -L %downloadUrl% -o %~dp0qttranslations\%filename%
"C:\Program Files\7-Zip\7z.exe" e -i!*\translations\qt_*.ts -i!*\translations\qtbase_*.ts -i!*\translations\qtmultimedia_*.ts %~dp0qttranslations\%filename% -o%~dp0qttranslations\ts\
for %%a in (%~dp0qttranslations\ts\*.ts) do (lrelease.exe -silent %%a -qm %~dp0qttranslations\qm\%%~na.qm)

View File

@ -2,6 +2,8 @@
call %~dp0get_openssl.cmd
call %~dp0get_qttranslations.cmd
call %~dp0copy_build.cmd x64
call %~dp0copy_build.cmd x86