<commit_before><commit_msg>Windows deploy script [ci skip]<commit_after>echo 'Starting deployment...'

set XPIKS_PLATFORM=x64
set XPIKS_VERSION=1.4.2

set XPIKS_DEPS_PATH=%cd%\..\..\..\xpiks-deps
set WINDOWS_LIBS=%XPIKS_DEPS_PATH%\windows-libs\release-%XPIKS_PLATFORM%
set REDIST_LIBS=%XPIKS_DEPS_PATH%\windows-libs\redist-%XPIKS_PLATFORM%
set OPENSSL_LIBS=%XPIKS_DEPS_PATH%\windows-libs\openssl-%XPIKS_PLATFORM%

pushd ..\build-xpiks-qt-Desktop_Qt_*-Release\release

windeployqt.exe --release --qmldir=../../xpiks-qt/CollapserTabs/ --qmldir=../../xpiks-qt/Components/ --qmldir=../../xpiks-qt/Constants/ --qmldir=../../xpiks-qt/Dialogs/ --qmldir=../../xpiks-qt/StackViews/ --qmldir=../../xpiks-qt/StyledControls/ --qmldir=../../xpiks-qt/ xpiks-qt.exe

echo 'Copying librries...'

xcopy /Y /s %WINDOWS_LIBS% .
xcopy /Y /s %REDIST_LIBS% .

copy /Y %OPENSSL_LIBS%\*.dll .

copy /Y ..\..\..\libs\libexiv2.dll .
copy /Y ..\..\..\libs\libcurl*.dll .
copy /Y ..\..\..\libs\quazip*.dll .
copy /Y ..\..\..\libs\ssdll.dll .
copy /Y ..\..\..\libs\mman.dll .
copy /Y ..\..\..\libs\face.dll .
copy /Y ..\..\..\libs\libexpat.dll .
copy /Y ..\..\..\libs\z.dll .

del *.obj
del *.cpp
del *.lib
del *.pdb
del vcredist_%XPIKS_PLATFORM%.exe

cd ..

echo 'Packing binaries...'

ren release Xpiks
"C:\Program Files\7-Zip\7z" a xpiks-qt-v%XPIKS_VERSION%.zip Xpiks

ren Xpiks xpiks-qt-v%XPIKS_VERSION%-tmp

popd

echo 'Done'
{'fraction_non_alphanumeric': 0.22840827980014275, 'fraction_numerical': 0.005710206995003569, 'mean_word_length': 2.708994708994709, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '490017', 'n_tokens_mistral': 686, 'n_tokens_neox': 606, 'n_words': 97}