upload apk

This commit is contained in:
zhang hongbo 2026-05-09 15:42:57 +08:00
parent 50082c52aa
commit 225d4f09c4

View File

@ -97,24 +97,28 @@ def extractVersionFromFileName(String fileName)
def buildPythonExecutionScript(String scriptArgs)
{
return """@echo off
where python >nul 2>nul
if not errorlevel 1 goto use_python
where py >nul 2>nul
py -3 -V >nul 2>nul
if not errorlevel 1 goto use_py_launcher
if exist \"C:\\Python314\\python.exe\" goto use_known_python
echo Python executable not found. Checked: python, py -3, C:\\Python314\\python.exe
\"C:\\Python314\\python.exe\" -V >nul 2>nul
if not errorlevel 1 goto use_known_python
python -V >nul 2>nul
if not errorlevel 1 goto use_python
echo Python executable not found. Checked runnable interpreters: py -3, C:\\Python314\\python.exe, python
exit /b 9009
:use_python
python ${scriptArgs}
exit /b %ERRORLEVEL%
:use_py_launcher
echo Using Python interpreter: py -3
py -3 ${scriptArgs}
exit /b %ERRORLEVEL%
:use_known_python
echo Using Python interpreter: C:\\Python314\\python.exe
\"C:\\Python314\\python.exe\" ${scriptArgs}
exit /b %ERRORLEVEL%
:use_python
echo Using Python interpreter: python
python ${scriptArgs}
exit /b %ERRORLEVEL%
"""
}