-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.ps1
20 lines (18 loc) · 907 Bytes
/
bundle.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"[*] Just a simple script to prep a release bundle"
$bProfile = $args[0]
switch -Regex ($bProfile) {
"release|debug" {
"[*] You may need to move the BoxDrv package manually"
if ($false -eq (Test-Path ".\TheBox")) { New-Item -ItemType Directory ".\TheBox" }
if ($false -eq (Test-Path ".\TheBox\utils")) { New-Item -ItemType Directory ".\TheBox\utils" }
Copy-Item ".\setup.ps1" ".\TheBox"
Copy-Item ".\target\x86_64-pc-windows-msvc\$($bProfile)\box_ui.exe" ".\TheBox"
Copy-Item ".\target\x86_64-pc-windows-msvc\$($bProfile)\box_broker.exe" ".\TheBox"
Copy-Item ".\target\x86_64-pc-windows-msvc\$($bProfile)\hooked.dll" ".\TheBox\utils"
Copy-Item ".\target\x86_64-pc-windows-msvc\$($bProfile)\whisper.exe" ".\TheBox\utils"
"[+] Done"
}
Default {
"[!] Usage: $($MyInvocation.MyCommand.Name) {release|debug}"
}
}