-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathsetup.ps1
More file actions
19 lines (14 loc) · 757 Bytes
/
setup.ps1
File metadata and controls
19 lines (14 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NUCLEI_TOOL_ROOT="D:\NucleiStudio\toolchain"
# Create your setup_config.ps1 before run .\setup.ps1
# and define $NUCLEI_TOOL_ROOT like below
# $NUCLEI_TOOL_ROOT="D:\NucleiStudio_IDE_202310-win64\NucleiStudio\toolchain"
# Start Windows PowerShell with the "Run as Administrator" option
# Run the following command below to enable running unsigned scripts:
# set-executionpolicy remotesigned
$SETUP_CONFIG="setup_config.ps1"
if (Test-Path $SETUP_CONFIG) {
. .\$SETUP_CONFIG
}
Write-Output "Setup Nuclei SDK Tool Environment"
Write-Output "NUCLEI_TOOL_ROOT=$NUCLEI_TOOL_ROOT"
$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