24 lines
564 B
Batchfile
24 lines
564 B
Batchfile
@echo off
|
|
REM Build TSS library for Android using gomobile
|
|
|
|
echo === Building TSS Library for Android ===
|
|
|
|
REM Check if gomobile is available
|
|
where gomobile >nul 2>&1
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo Installing gomobile...
|
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
|
gomobile init
|
|
)
|
|
|
|
REM Download dependencies
|
|
echo Downloading Go dependencies...
|
|
go mod tidy
|
|
|
|
REM Build for Android
|
|
echo Building Android AAR...
|
|
gomobile bind -target=android -androidapi=26 -o ..\app\libs\tsslib.aar .
|
|
|
|
echo === Build complete! ===
|
|
echo Output: ..\app\libs\tsslib.aar
|