-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuilder.ps1
More file actions
30 lines (29 loc) · 828 Bytes
/
builder.ps1
File metadata and controls
30 lines (29 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
param (
[string]$arg
)
switch ($arg) {
"--build" {
Write-Host "Running: pip install -e ."
pip install -e .
}
"--run" {
Write-Host "Running: python sqlmap_gui"
python sqlmap_gui
}
"--activate" {
Write-Host "Activating virtual environment"
.\sqlmap_env\Scripts\Activate.ps1
}
"--exe" {
$cmd = "pyinstaller --onefile --windowed sqlmap_gui/main.py"
Write-Host "Running: $cmd"
Invoke-Expression $cmd
}
Default {
Write-Host "Usage:"
Write-Host " builder.ps1 --build (pip install -e .)"
Write-Host " builder.ps1 --run (python sqlmap_gui)"
Write-Host " builder.ps1 --activate (activate virtualenv)"
Write-Host " builder.ps1 --exe (build executable)"
}
}