修复发布脚本 CMD 语法并完善制品检查

main
Jenkins CI 5 months ago
parent 3e894eb40f
commit 229517de8f

14
Jenkinsfile vendored

@ -513,13 +513,15 @@ pipeline {
set /a SIZE_MB=%%~zF/1048576
echo ✓ slms-debug.apk - !SIZE_MB! MB
)
) else if exist android\\build\\outputs\\apk\\debug\\SLMS-debug.apk (
for %%F in (android\\build\\outputs\\apk\\debug\\SLMS-debug.apk) do (
set /a SIZE_MB=%%~zF/1048576
echo ✓ SLMS-debug.apk - !SIZE_MB! MB
)
) else (
echo ✗ APK - 不存在
if exist android\\build\\outputs\\apk\\debug\\SLMS-debug.apk (
for %%F in (android\\build\\outputs\\apk\\debug\\SLMS-debug.apk) do (
set /a SIZE_MB=%%~zF/1048576
echo ✓ SLMS-debug.apk - !SIZE_MB! MB
)
) else (
echo ✗ APK - 不存在
)
)
echo.

Loading…
Cancel
Save