-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
72 lines (64 loc) · 2.04 KB
/
build.bat
File metadata and controls
72 lines (64 loc) · 2.04 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@echo off
echo ========================================
echo Scam Advisor - Build Executable
echo ========================================
echo.
echo Step 1: Checking required files and directories...
:: Create directories if they don't exist
if not exist "data" mkdir data
if not exist "config" mkdir config
if not exist "data\history.json" (
echo Creating missing history.json...
echo [] > "data\history.json"
)
if not exist "config\defaults.ini" (
echo Creating missing defaults.ini...
echo [theme] > "config\defaults.ini"
echo current = dark >> "config\defaults.ini"
echo. >> "config\defaults.ini"
echo [api_keys] >> "config\defaults.ini"
echo virustotal = >> "config\defaults.ini"
echo abuseipdb = >> "config\defaults.ini"
echo otx = >> "config\defaults.ini"
echo. >> "config\defaults.ini"
echo [scanning] >> "config\defaults.ini"
echo timeout = 30 >> "config\defaults.ini"
echo enable_caching = true >> "config\defaults.ini"
echo max_redirects = 5 >> "config\defaults.ini"
)
echo Step 2: Checking if PyInstaller is installed...
python -m pyinstaller --version >nul 2>&1
if %errorlevel% neq 0 (
echo Installing PyInstaller...
pip install pyinstaller
)
echo Step 3: Building executable...
pyinstaller setup.spec
if %errorlevel% equ 0 (
echo.
echo ========================================
echo BUILD COMPLETE!
echo ========================================
echo.
echo Your executable is ready at: dist\ScamAdvisor.exe
echo.
echo To test your application:
echo 1. Navigate to: dist\
echo 2. Double-click: ScamAdvisor.exe
echo.
echo Features included in your build:
echo ✅ Your VirusTotal API key
echo ✅ Your AlienVault OTX API key
echo ✅ Search history with 7 saved scans
echo ✅ All detection engines
echo.
) else (
echo.
echo ========================================
echo BUILD FAILED!
echo ========================================
echo.
echo Check the error messages above.
echo.
)
pause