<commit_before># Copyright (c) 2016 <NAME>, <NAME>. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

!if ${ARCH} == "x86_64"
  !define ARCHNAME "x86_64"
  !define PROGDIR $PROGRAMFILES64
!else if ${ARCH} == "i686"
  !define ARCHNAME "x86"
  !define PROGDIR $PROGRAMFILES
!else
  !error "Architecture '${ARCH}' unkown"
!endif


!include "MUI.nsh"

!define APP_NAME "pairinteraction"
!define BUILD_DIR "..\build"
!define DLL_DIR "\usr\${ARCH}-w64-mingw32\sys-root\mingw\bin\"
name ${APP_NAME}

OutFile '${APP_NAME}-install-windows-${ARCH}.exe'

showinstdetails show

InstallDir '${PROGDIR}\${APP_NAME}'

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "..\LICENSE"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.BOOST1"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.GPL3"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.LGPL3"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.MPL2"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.OMPI"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.MIT"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_FINISHPAGE_NOAUTOCLOSE
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"

SectionGroup /e "Dependencies"
  Section 'MS-MPI'
    SetOutPath "$INSTDIR"
    File "${BUILD_DIR}\win32\MSMpiSetup.exe"
    ExecWait "$INSTDIR\MSMpiSetup.exe"
    Delete "$INSTDIR\MSMpiSetup.exe"
  SectionEnd

  Section 'Miniconda'
    SetOutPath "$INSTDIR"
    File "${BUILD_DIR}\win32\Miniconda3-latest-Windows-${ARCHNAME}.exe"
    ExecWait "$INSTDIR\Miniconda3-latest-Windows-${ARCHNAME}.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=$INSTDIR\Miniconda3"

    !define CONDA_PATH "$INSTDIR\Miniconda3\Scripts\conda.exe"
    !define PIP_PATH "$INSTDIR\Miniconda3\Scripts\pip.exe"

    IfFileExists "${CONDA_PATH}" 0 fail
    IfFileExists "${PIP_PATH}" 0 fail

    ExecWait "${CONDA_PATH} install -y numpy scipy"
    ExecWait "${PIP_PATH} install psutil pint pyqt5"
    Goto done

fail:
      MessageBox MB_OK "Miniconda installation could not be found!"
done:

    Delete "$INSTDIR\Miniconda3-latest-Windows-${ARCHNAME}.exe"
  SectionEnd
SectionGroupEnd

SectionGroup /e "${APP_NAME}"
  Section 'Backend'
    SectionIn RO
    SetOutPath "$INSTDIR"
    File "..\LICENSE*"
    SetOutPath "$INSTDIR\calc"
    File "${BUILD_DIR}\calc\*.exe"
    File "${DLL_DIR}\libboost_filesystem-mt.dll"
    File "${DLL_DIR}\libboost_program_options-mt.dll"
    File "${DLL_DIR}\libboost_system-mt.dll"
    !if ${ARCH} == "x86_64"
      File "${DLL_DIR}\libgcc_s_seh-1.dll"
    !else if ${ARCH} == "i686"
      File "${DLL_DIR}\libgcc_s_sjlj-1.dll"
    !endif
    File "${DLL_DIR}\libgsl-0.dll"
    File "${DLL_DIR}\libgslcblas-0.dll"
    File "${DLL_DIR}\libsqlite3-0.dll"
    File "${DLL_DIR}\libstdc++-6.dll"
    File "${DLL_DIR}\libwinpthread-1.dll"<commit_msg>Capture command-line output during windows install<commit_after># Copyright (c) 2016 <NAME>, <NAME>. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

!if ${ARCH} == "x86_64"
  !define ARCHNAME "x86_64"
  !define PROGDIR $PROGRAMFILES64
!else if ${ARCH} == "i686"
  !define ARCHNAME "x86"
  !define PROGDIR $PROGRAMFILES
!else
  !error "Architecture '${ARCH}' unkown"
!endif


!include "MUI.nsh"

!define APP_NAME "pairinteraction"
!define BUILD_DIR "..\build"
!define DLL_DIR "\usr\${ARCH}-w64-mingw32\sys-root\mingw\bin\"
name ${APP_NAME}

OutFile '${APP_NAME}-install-windows-${ARCH}.exe'

showinstdetails show

InstallDir '${PROGDIR}\${APP_NAME}'

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "..\LICENSE"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.BOOST1"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.GPL3"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.LGPL3"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.MPL2"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.OMPI"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.MIT"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_FINISHPAGE_NOAUTOCLOSE
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"

SectionGroup /e "Dependencies"
  Section 'MS-MPI'
    SetOutPath "$INSTDIR"
    File "${BUILD_DIR}\win32\MSMpiSetup.exe"
    ExecWait "$INSTDIR\MSMpiSetup.exe"
    Delete "$INSTDIR\MSMpiSetup.exe"
  SectionEnd

  Section 'Miniconda'
    SetOutPath "$INSTDIR"
    File "${BUILD_DIR}\win32\Miniconda3-latest-Windows-${ARCHNAME}.exe"
    nsExec::ExecToLog "$INSTDIR\Miniconda3-latest-Windows-${ARCHNAME}.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=$INSTDIR\Miniconda3"

    !define CONDA_PATH "$INSTDIR\Miniconda3\Scripts\conda.exe"
    !define PIP_PATH "$INSTDIR\Miniconda3\Scripts\pip.exe"

    IfFileExists "${CONDA_PATH}" 0 fail
    IfFileExists "${PIP_PATH}" 0 fail

    nsExec::ExecToLog "${CONDA_PATH} install -y numpy scipy"
    nsExec::ExecToLog "${PIP_PATH} install psutil pint pyqt5"
    Goto done

fail:
      MessageBox MB_OK "Miniconda installation could not be found!"
done:

    Delete "$INSTDIR\Miniconda3-latest-Windows-${ARCHNAME}.exe"
  SectionEnd
SectionGroupEnd

SectionGroup /e "${APP_NAME}"
  Section 'Backend'
    SectionIn RO
    SetOutPath "$INSTDIR"
    File "..\LICENSE*"
    SetOutPath "$INSTDIR\calc"
    File "${BUILD_DIR}\calc\*.exe"
    File "${DLL_DIR}\libboost_filesystem-mt.dll"
    File "${DLL_DIR}\libboost_program_options-mt.dll"
    File "${DLL_DIR}\libboost_system-mt.dll"
    !if ${ARCH} == "x86_64"
      File "${DLL_DIR}\libgcc_s_seh-1.dll"
    !else if ${ARCH} == "i686"
      File "${DLL_DIR}\libgcc_s_sjlj-1.dll"
    !endif
    File "${DLL_DIR}\libgsl-0.dll"
    File "${DLL_DIR}\libgslcblas-0.dll"
    File "${DLL_DIR}\libsqlite3-0.dll"
    File "${DLL_DIR}\libstdc++-6.dll"
    File "${DLL_DIR}\libwinpthread-1.dll"
{'fraction_non_alphanumeric': 0.13232263762143068, 'fraction_numerical': 0.01825139829261113, 'mean_word_length': 4.493128536782538, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4119656', 'n_tokens_mistral': 2585, 'n_tokens_neox': 2387, 'n_words': 564}