mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-02 16:49:47 +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:
parent
bf087d7c7d
commit
fa0d570b7f
1
.gitignore
vendored
1
.gitignore
vendored
@ -73,6 +73,7 @@ Common/vcpkg/**
|
||||
*_qmlcache.qrc
|
||||
*.DS_Store
|
||||
/Common/vcpkg/
|
||||
Common/ffmpeg
|
||||
/Docs/html/screemplay.index
|
||||
|
||||
#CMake
|
||||
|
@ -1,20 +1,3 @@
|
||||
setlocal EnableExtensions
|
||||
|
||||
set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
|
||||
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
|
||||
|
||||
|
||||
@echo off
|
||||
powershell -executionpolicy bypass -File UpdateTranslations.ps1
|
||||
exit
|
26
ScreenPlay/UpdateTranslations.ps1
Normal file
26
ScreenPlay/UpdateTranslations.ps1
Normal 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
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -15,20 +15,23 @@ cd ..
|
||||
cd ..
|
||||
|
||||
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 We only need the content of the bin folder
|
||||
rem --strip-components 2 removes folder
|
||||
tar -xvf ffmpeg.zip --strip-components 2 ffmpeg-4.3.1-full_build/bin
|
||||
mkdir ffmpeg_tmp
|
||||
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
|
||||
DEL ffplay.exe
|
||||
|
||||
rem Move ffmpeg into folder
|
||||
move /Y ffmpeg.exe Common/ffmpeg
|
||||
move /Y ffprobe.exe Common/ffmpeg
|
||||
DEL Common\ffmpeg\ffplay.exe
|
||||
|
||||
rem Deleting FFmpeg temp
|
||||
DEL ffmpeg.zip
|
||||
|
||||
rmdir ffmpeg_tmp /s /q
|
||||
pause
|
Loading…
Reference in New Issue
Block a user