<commit_before><?xml version="1.0" encoding="UTF-8"?>

<?include Variables.wxi ?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  <Fragment>
    <ComponentGroup Id="NitraComponents" Directory="INSTALLFOLDER">
      <ComponentRef Id="Comp_Nitra" />
    </ComponentGroup>

    <DirectoryRef Id="INSTALLFOLDER">
      <Component Id="Comp_Nitra" DiskId="1" Guid="$(var.Comp_Nitra_Guid)">
        <!-- libraries -->
        <?foreach name in Boot.N2.Runtime;Boot.N2.Core;N2.Runtime;N2.Grammar;N2.Compiler?>
        <File Id="File_$(var.name).dll" Name="$(var.name).dll" Source="$(var.NitraBinariesSourcePath)">
          <netfx:NativeImage Priority="1" Platform="all" Id="Image_$(var.name).dll" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
        <?if $(var.Configuration) = "Release" ?>
        <File Id="File_$(var.name).xml" Name="$(var.name).xml" Source="$(var.NitraBinariesSourcePath)" />
        <?endif?>
        <?if $(var.Configuration) = "Debug" ?>
        <File Id="File_$(var.name).pdb" Name="$(var.name).pdb" Source="$(var.NitraBinariesSourcePath)" />
        <?endif?>
        <?endforeach?>
        <!-- executables -->
        <?foreach name in Nitra?>
        <File Id="File_$(var.name).exe" Name="$(var.name).exe" Source="$(var.NitraBinariesSourcePath)">
          <netfx:NativeImage Priority="1" Platform="all" Id="Image_$(var.name).exe" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
        <?if $(var.Configuration) = "Release" ?>
        <File Id="File_$(var.name).xml" Name="$(var.name).xml" Source="$(var.NitraBinariesSourcePath)" />
        <?endif?>
        <?if $(var.Configuration) = "Debug" ?>
        <File Id="File_$(var.name).pdb" Name="$(var.name).pdb" Source="$(var.NitraBinariesSourcePath)" />
        <?endif?>
        <?endforeach?>

        <RegistryKey Root="HKLM" Key="$(var.RegKey_AssemblyFoldersEx)">
          <RegistryValue Value="[INSTALLFOLDER]" Type="string" />
          <RegistryValue Id="AppFolder" Value="[INSTALLFOLDER]" Type="string" />
        </RegistryKey>

      </Component><commit_msg>Embed Nemerle binaries to installer.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<?include Variables.wxi ?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  <Fragment>
    <ComponentGroup Id="NitraComponents" Directory="INSTALLFOLDER">
      <ComponentRef Id="Comp_Nitra" />
    </ComponentGroup>

    <DirectoryRef Id="INSTALLFOLDER">
      <Component Id="Comp_Nitra" DiskId="1" Guid="$(var.Comp_Nitra_Guid)">
        <?foreach name in Boot.N2.Runtime.dll;Boot.N2.Core.dll;N2.Runtime.dll;N2.Grammar.dll;N2.Compiler.dll;Nemerle.dll;Nemerle.Compiler.dll;Nemerle.Peg.dll;Nemerle.Macros.dll;ncc.parser.csharp.dll;CSharpParser.dll;ncc32.exe;ncc64.exe;Nitra.exe?>
        <File Id="File_$(var.name)" Name="$(var.name)" Source="$(var.NitraBinariesSourcePath)">
          <netfx:NativeImage Priority="1" Platform="all" Id="Image_$(var.name)" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
        <?endforeach?>

        <RegistryKey Root="HKLM" Key="$(var.RegKey_AssemblyFoldersEx)">
          <RegistryValue Value="[INSTALLFOLDER]" Type="string" />
          <RegistryValue Id="AppFolder" Value="[INSTALLFOLDER]" Type="string" />
        </RegistryKey>

      </Component>
{'fraction_non_alphanumeric': 0.1917808219178082, 'fraction_numerical': 0.009618187117458467, 'mean_word_length': 3.875, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 2, '>': 60, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '1025886', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1126, 'n_words': 151}