-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.ps1
More file actions
40 lines (30 loc) · 1019 Bytes
/
Copy pathinstall.ps1
File metadata and controls
40 lines (30 loc) · 1019 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
31
32
33
34
35
36
37
38
39
40
# install.ps1
echo "[*] Installing environment with uv.`n"
uv sync
echo "`n---------------------------------`n"
echo "[*] Initializing databases.`n"
$output = uv run init_db.py
if ($output -eq "[-] PASSWORD ERROR") {
Write-Host "`n[-] Passwords do not match or are empty!"
Write-Host "[!] Installation Failed!!!"
exit 1
}
elseif ($output -eq "[!] Keyboard Interrupt") {
Write-Host "`n`n[-] Keyboard Interrupt!"
Write-Host "[!] Installation Failed!!!"
exit 1
}
echo "`n---------------------------------`n"
echo "[*] Building executables.`n"
if (Test-Path "dist") {
Remove-Item -Recurse -Force dist
}
uv run pyinstaller -F hiding.py --uac-admin --manifest admin.manifest
uv run pyinstaller -F recovery.py
uv run pyinstaller -F linker.py --uac-admin --manifest admin.manifest
echo "`n---------------------------------`n"
echo "[*] Removing unnecessary files.`n"
rm *.spec
rm -r build/
echo "`n---------------------------------`n"
Write-Host "[+] Installation completed successfully."