-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-apk.bat
More file actions
42 lines (34 loc) Β· 1015 Bytes
/
build-apk.bat
File metadata and controls
42 lines (34 loc) Β· 1015 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
41
42
@echo off
echo π Building Float Browser APK...
echo Repository: https://github.com/shade-solutions/float-browser
echo.
REM Check if Java is installed
java -version >nul 2>&1
if %errorlevel% neq 0 (
echo β Java is not installed. Please install Java 8+ first.
pause
exit /b 1
)
echo β
Java version:
java -version
echo.
echo π§ Building debug APK (for testing)...
gradlew.bat assembleDebug
if %errorlevel% equ 0 (
echo β
Debug APK built successfully!
echo π± Location: app\build\outputs\apk\debug\app-debug.apk
if exist "app\build\outputs\apk\debug\app-debug.apk" (
for %%A in (app\build\outputs\apk\debug\app-debug.apk) do echo π APK Size: %%~zA bytes
)
echo.
echo π― To install on device:
echo adb install app\build\outputs\apk\debug\app-debug.apk
echo.
echo π To build release APK:
echo gradlew.bat assembleRelease
) else (
echo β Build failed. Check the error messages above.
pause
exit /b 1
)
pause