github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/.ci-scripts/nsis_setup.sh (about) 1 #!/bin/bash 2 3 # Set up nsis after it's installed 4 # $1 should be the target directory where nsis is 5 set -eu -o pipefail 6 7 NSIS_VERSION=3.06.1 8 9 if [ $1 = "" ]; then 10 echo "first arg must be the NSIS_HOME" 11 echo "For example nsis_setup.sh /usr/share/nsis" 12 echo "For example nsis_setup.sh /usr/local/share/nsis" 13 echo "For example, nsis_setup.sh /opt/homebrew/Cellar/makensis/3.08/share/nsis" 14 echo "For example, nsis_setup.sh /home/linuxbrew/.linuxbrew/Cellar/makensis/3.08/share/nsis" 15 echo "For example, nsis_setup.sh /c/Program Files (x86)/NSIS" 16 exit 1 17 fi 18 NSIS_HOME=$1 19 curl -sfL -o /tmp/nsis.zip https://sourceforge.net/projects/nsis/files/NSIS%203/${NSIS_VERSION}/nsis-${NSIS_VERSION}.zip/download && unzip -o -d /tmp/nsistemp /tmp/nsis.zip && sudo mv /tmp/nsistemp/*/* "${NSIS_HOME}" && rm -rf /tmp/nsistemp /tmp/nsis.zip 20 curl -sfL -o /tmp/EnVar-Plugin.zip https://github.com/GsNSIS/EnVar/releases/latest/download/EnVar-Plugin.zip && sudo unzip -o -d $"${NSIS_HOME}" /tmp/EnVar-Plugin.zip && rm /tmp/EnVar-Plugin.zip 21 curl -sfL -o /tmp/INetC.zip https://github.com/DigitalMediaServer/NSIS-INetC-plugin/releases/latest/download/INetC.zip && sudo unzip -o -d "${NSIS_HOME}/Plugins" /tmp/INetC.zip && rm /tmp/INetC.zip