-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.bat
More file actions
53 lines (45 loc) · 1.2 KB
/
build.bat
File metadata and controls
53 lines (45 loc) · 1.2 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
@echo off
setlocal
echo Android Bloatware Remover - Local Build Script
echo ================================================
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python is required but not installed
exit /b 1
)
echo Installing PyInstaller...
pip install pyinstaller >nul
if errorlevel 1 (
echo Failed to install PyInstaller.
exit /b 1
)
echo Generating PyInstaller spec file...
python build_spec.py
if errorlevel 1 (
echo Failed to generate PyInstaller spec file.
exit /b 1
)
if not exist android-bloatware-remover.spec (
echo Spec file not found after generation.
exit /b 1
)
echo Building executable...
pyinstaller android-bloatware-remover.spec --clean
if errorlevel 1 (
echo Build failed.
exit /b 1
)
if exist dist\android-bloatware-remover.exe (
echo Build completed successfully.
echo Executable location: dist\android-bloatware-remover.exe
echo Testing executable...
echo 5^| dist\android-bloatware-remover.exe --test >nul
if errorlevel 1 (
echo CLI smoke test failed.
exit /b 1
)
echo CLI smoke test passed.
) else (
echo Build completed but executable was not found in the expected location.
)
exit /b 0