github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/docs/content/developers/scripts/windows_postinstall.sh (about)

     1  #!/bin/bash
     2  
     3  # Install NSIS on test machines, any other post-install
     4  # This should be run with administrative privileges.
     5  
     6  set -eu -o pipefail
     7  set -x
     8  
     9  NSIS_VERSION=3.06.1
    10  NSIS_HOME="/c/Program Files (x86)/NSIS"
    11  
    12  # Note that this is not a silent NSIS install because the silent install
    13  # does not install the default Plugins and Stubs
    14  curl -sSL -o /tmp/nsis-setup.exe https://prdownloads.sourceforge.net/nsis/nsis-${NSIS_VERSION}-setup.exe?download && chmod +x /tmp/nsis-setup.exe
    15  /tmp/nsis-setup.exe
    16  
    17  # Get the Plugins for NSIS
    18  curl -fsSL -o /tmp/EnVar-Plugin.zip https://github.com/GsNSIS/EnVar/releases/latest/download/EnVar-Plugin.zip && unzip -o -d "${NSIS_HOME}" /tmp/EnVar-Plugin.zip
    19  curl -fsSL -o /tmp/INetC.zip https://github.com/DigitalMediaServer/NSIS-INetC-plugin/releases/latest/download/INetC.zip && unzip -o -d "${NSIS_HOME}/Plugins" /tmp/INetC.zip
    20  
    21  echo "You must now add to the system path C:\Program Files (x86)\NSIS\bin, which for some reason is not added by the installer"