<commit_before>echo on

SET project_dir="%cd%"

echo Set up environment...
set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;C:\Qt\QtIFW2.0.1\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%

echo Building Dialogue...
qmake -spec win32-msvc2015 CONFIG+=x86_64 CONFIG-=debug CONFIG+=release
nmake

echo Packaging...
cd %project_dir%\build\windows\msvc\x86_64\release\
windeployqt Dialogue\Dialogue.exe

rd /s /q Dialogue\moc\
rd /s /q Dialogue\obj\
rd /s /q Dialogue\qrc\

echo Copying files for archival...
copy "%project_dir%\README.md" "Dialogue\README.md"
copy "%project_dir%\LICENSE" "Dialogue\LICENSE.txt"
copy "%project_dir%\Qt License" "Dialogue\Qt License.txt"

echo Copying files for installer...
mkdir %project_dir%\installer\windows\x86_64\packages\com.dialogueproject.dialogue\data\
robocopy Dialogue\ %project_dir%\installer\windows\x86_64\packages\com.dialogueproject.dialogue\data\ /E

echo Packaging portable archive...
7z a dialogue_%TAG_NAME%_windows_x86_64_portable.zip Dialogue

echo Creating installer...
cd %project_dir%\installer\windows\x86_64\
binarycreator.exe --offline-only -c config\config.xml -p packages dialogue_%TAG_NAME%_windows_x86_64_installer.exe<commit_msg>Add Qt Quick dependency files missed by windeployqt<commit_after>echo on

SET project_dir="%cd%"

echo Set up environment...
set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;C:\Qt\QtIFW2.0.1\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%

echo Building Dialogue...
qmake -spec win32-msvc2015 CONFIG+=x86_64 CONFIG-=debug CONFIG+=release
nmake

echo Packaging...
cd %project_dir%\build\windows\msvc\x86_64\release\
windeployqt Dialogue\Dialogue.exe

rd /s /q Dialogue\moc\
rd /s /q Dialogue\obj\
rd /s /q Dialogue\qrc\

echo Copying left out Qt files...
copy "%QT%\bin\Qt5QuickControls2.dll" "Dialogue\Qt5QuickControls2.dll"
copy "%QT%\bin\Qt5QuickTemplates2.dll" "Dialogue\Qt5QuickTemplates2.dll"
mkdir Dialogue\Qt\
mkdir Dialogue\Qt\labs\
robocopy "%QT%\qml\Qt\labs\settings\" "Dialogue\Qt\labs\" /E
robocopy "%QT%\qml\QtGraphicalEffects\" "Dialogue\" /E
robocopy "%QT%\qml\QtQuick\" "Dialogue\" /E
robocopy "%QT%\qml\QtQuick.2\" "Dialogue\" /E


echo Copying project files for archival...
copy "%project_dir%\README.md" "Dialogue\README.md"
copy "%project_dir%\LICENSE" "Dialogue\LICENSE.txt"
copy "%project_dir%\Qt License" "Dialogue\Qt License.txt"

echo Copying files for installer...
mkdir "%project_dir%\installer\windows\x86_64\packages\com.dialogueproject.dialogue\data\"
robocopy Dialogue\ %project_dir%\installer\windows\x86_64\packages\com.dialogueproject.dialogue\data\ /E

echo Packaging portable archive...
7z a dialogue_%TAG_NAME%_windows_x86_64_portable.zip Dialogue

echo Creating installer...
cd %project_dir%\installer\windows\x86_64\
binarycreator.exe --offline-only -c config\config.xml -p packages dialogue_%TAG_NAME%_windows_x86_64_installer.exe
{'fraction_non_alphanumeric': 0.1402500844880027, 'fraction_numerical': 0.032105441027374115, 'mean_word_length': 4.896414342629482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4366089', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1071, 'n_words': 225}