setup.ps1 757 B

12345678910111213141516171819
  1. $NUCLEI_TOOL_ROOT="D:\NucleiStudio\toolchain"
  2. # Create your setup_config.ps1 before run .\setup.ps1
  3. # and define $NUCLEI_TOOL_ROOT like below
  4. # $NUCLEI_TOOL_ROOT="D:\NucleiStudio_IDE_202310-win64\NucleiStudio\toolchain"
  5. # Start Windows PowerShell with the "Run as Administrator" option
  6. # Run the following command below to enable running unsigned scripts:
  7. # set-executionpolicy remotesigned
  8. $SETUP_CONFIG="setup_config.ps1"
  9. if (Test-Path $SETUP_CONFIG) {
  10. . .\$SETUP_CONFIG
  11. }
  12. Write-Output "Setup Nuclei SDK Tool Environment"
  13. Write-Output "NUCLEI_TOOL_ROOT=$NUCLEI_TOOL_ROOT"
  14. $env:Path="$NUCLEI_TOOL_ROOT\gcc\bin;$NUCLEI_TOOL_ROOT\openocd\bin;$NUCLEI_TOOL_ROOT\build-tools\bin;$NUCLEI_TOOL_ROOT\qemu\bin;$NUCLEI_TOOL_ROOT\nucleimodel\bin;"+$env:Path