<commit_before>@echo off
call tools\setenv.bat

rem get version
set /p version=<version.txt

echo ======================= make content.jar

erase /Q out\*
7z a -tzip -mx=9 -mcu=on out\content.jar ..\chrome\content


echo ======================= make application.ini

call :appini > out\application.ini


echo ======================= make windows installer package

call :heatdir ..\..\assets assets APPLICATIONFOLDER
call :heatdir tools\xulrunner xulrunner APPLICATIONFOLDER

candle -nologo oilclient.wxs -out out\oilclient.wixobj -dversion=%version%

light -nologo -ext WixUIExtension -cultures:en-us -out C:\tmp\oilclient_%version%.msi out\oilclient.wixobj out\assets.wixobj out\xulrunner.wixobj

goto :eof


rem === functions

:heatdir
heat dir %1 -nologo -sfrag -scom -sreg -gg -g1 -cg %2 -dr %3 -var var.%2_source -out out\%2.wxs
candle -nologo out\%2.wxs -out out\%2.wixobj -d%2_source=%1
goto :eof

:appini
echo Vendor=quyse.net
echo Name=oil
echo Version=%version%
echo BuildID=1234567
echo ID=<EMAIL>
echo [Gecko]
echo MinVersion=1.8
echo MaxVersion=200.*
goto :eof<commit_msg>fix mistake in build script;<commit_after>@echo off
call tools\setenv.bat

rem get version
set /p version=<version.txt

echo ======================= make content.jar

erase /Q out\*
7z a -tzip -mx=9 -mcu=on out\content.jar ..\chrome\content


echo ======================= make application.ini

call :appini > out\application.ini


echo ======================= make windows installer package

call :heatdir ..\..\assets assets APPLICATIONFOLDER
call :heatdir tools\xulrunner xulrunner APPLICATIONFOLDER

candle -nologo oilclient.wxs -out out\oilclient.wixobj -dversion=%version%

light -nologo -ext WixUIExtension -cultures:en-us -out C:\tmp\oilclient_%version%.msi out\oilclient.wixobj out\assets.wixobj out\xulrunner.wixobj

goto :eof


rem === functions

:heatdir
heat dir %1 -nologo -sfrag -scom -sreg -gg -g1 -cg %2 -dr %3 -var var.%2_source -out out\%2.wxs
candle -nologo out\%2.wxs -out out\%2.wixobj -d%2_source=%1
goto :eof

:appini
echo [App]
echo Vendor=quyse.net
echo Name=oil
echo Version=%version%
echo BuildID=1234567
echo ID=<EMAIL>
echo [Gecko]
echo MinVersion=1.8
echo MaxVersion=200.*
goto :eof
{'fraction_non_alphanumeric': 0.17424931756141948, 'fraction_numerical': 0.02183803457688808, 'mean_word_length': 4.456575682382134, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1521756', 'n_tokens_mistral': 859, 'n_tokens_neox': 797, 'n_words': 223}