From 225d4f09c41597d00c2be5bd2ad1efe09ce5d210 Mon Sep 17 00:00:00 2001 From: zhang hongbo Date: Sat, 9 May 2026 15:42:57 +0800 Subject: [PATCH] upload apk --- vars/uploadApk.groovy | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/vars/uploadApk.groovy b/vars/uploadApk.groovy index e1b894b..a18e0fe 100644 --- a/vars/uploadApk.groovy +++ b/vars/uploadApk.groovy @@ -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% """ }