1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Many fixes/changes

+ Update Vietnamese translation.
+ Rewrite old UpdateTranslations.bat into new PowerShell script and a batch file launcher
+ install_dependencies_windows.bat now download and install FFmpeg shared version (reduce size by a lot)
Fixes:
+ .gitignore add FFmpeg
This commit is contained in:
teppyboy 2020-10-04 11:26:25 +07:00
parent bf087d7c7d
commit fa0d570b7f
13 changed files with 1734 additions and 850 deletions

1
.gitignore vendored
View File

@ -73,6 +73,7 @@ Common/vcpkg/**
*_qmlcache.qrc *_qmlcache.qrc
*.DS_Store *.DS_Store
/Common/vcpkg/ /Common/vcpkg/
Common/ffmpeg
/Docs/html/screemplay.index /Docs/html/screemplay.index
#CMake #CMake

View File

@ -1,20 +1,3 @@
setlocal EnableExtensions @echo off
powershell -executionpolicy bypass -File UpdateTranslations.ps1
set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin exit
set PATH=%PATH%;C:\Qt\5.15.1\msvc2019_64\bin
set root=%cd%
cd translations
lupdate.exe -extensions qml "../qml" -ts ^
ScreenPlay_ru.ts ^
ScreenPlay_de.ts ^
ScreenPlay_en.ts ^
ScreenPlay_fr.ts ^
ScreenPlay_ko.ts ^
ScreenPlay_vi.ts ^
ScreenPlay_es.ts ^
pause

View File

@ -0,0 +1,26 @@
echo "Updating translations..."
$MSVCPATH = Read-Host 'Type your ABSOLUTE MSVC "bin" directory (ex: F:\Qt\5.15.1\msvc2019_64\bin)'
echo "Begin update translations..."
$files = Get-ChildItem ".\translations"
foreach ($f in $files){
echo "Processing $f"
$pinfo = New-Object System.Diagnostics.ProcessStartInfo
$pinfo.FileName = "$MSVCPATH/lupdate.exe"
$pinfo.RedirectStandardError = $true
$pinfo.RedirectStandardOutput = $true
$pinfo.UseShellExecute = $false
$pinfo.Arguments = "-extensions qml ..\qml -ts $f"
$pinfo.WorkingDirectory = ".\translations"
$p = New-Object System.Diagnostics.Process
$p.StartInfo = $pinfo
$p.Start() | Out-Null
$p.WaitForExit()
$stdout = $p.StandardOutput.ReadToEnd()
$stderr = $p.StandardError.ReadToEnd()
Write-Host "$stdout"
Write-Host "$stderr"
Write-Host "Exit code:" + $p.ExitCode
echo "Done"
}
echo "Updated translations."
pause

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -15,20 +15,23 @@ cd ..
cd .. cd ..
rem Donwload ffmpeg rem Donwload ffmpeg
curl.exe -L --ssl-no-revoke https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-2020-09-16-full_build.zip --output ffmpeg.zip curl.exe -L https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.zip --ssl-no-revoke --output ffmpeg.zip
rem Extract ffmpeg. Needs Windows 10 build 17063 or higher! rem Extract ffmpeg. Needs Windows 10 build 17063 or higher!
rem We only need the content of the bin folder rem We only need the content of the bin folder
rem --strip-components 2 removes folder mkdir ffmpeg_tmp
tar -xvf ffmpeg.zip --strip-components 2 ffmpeg-4.3.1-full_build/bin tar -xvf ffmpeg.zip -C ffmpeg_tmp
timeout 3 > NUL
rem Copy to Common folder
mkdir Common\ffmpeg
move "ffmpeg_tmp\ffmpeg-*" "ffmpeg_tmp\ffmpeg"
robocopy ffmpeg_tmp\ffmpeg\bin Common\ffmpeg /E
rem Remove not used ffplay rem Remove not used ffplay
DEL ffplay.exe DEL Common\ffmpeg\ffplay.exe
rem Move ffmpeg into folder
move /Y ffmpeg.exe Common/ffmpeg
move /Y ffprobe.exe Common/ffmpeg
rem Deleting FFmpeg temp
DEL ffmpeg.zip DEL ffmpeg.zip
rmdir ffmpeg_tmp /s /q
pause pause