Files
jiecheng-business/build_channels.bat
freeboss b7b5518834 feat: dev-5.1 分支基线(v1.3.35 发版后代码 + 5.1 声道改造文档)
- 以 main(ccc65af) 为基线提交当前工作区代码
- 新增 5.1 声道改造文档两份
- .gitignore 补充 .vscode/、.screenshots/
2026-11-02 19:25:12 +08:00

35 lines
953 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
REM ========== 基础路径配置 ==========
set PROJECT_PATH=D:\pk\jiecheng
set MODULE_NAME=app
REM 定义需要打包的环境 Release Preview
set ENVIRONMENT=Release
cd /d %PROJECT_PATH%
REM 定义需要打包的渠道列表 必须由jc开头
set CHANNEL_LIST=jctongyong_al
REM 修改格式
set CHANNEL_LIST=%CHANNEL_LIST:~1%
REM ========== 核心打包循环 ==========
for %%C in (assembleJ%CHANNEL_LIST%%ENVIRONMENT%) do (
echo.
echo [INFO] ============Start for channels [%%C] build APK ...
REM 使用Gradle命令执行打包,关键步骤:
call gradlew :app:%%C
if errorlevel 1 (
echo [ERROR] ============channels [%%C] build fail!
pause
exit /b 1
) else (
echo [SUCCESS] ============channels [%%C] build success。
)
)
echo.
echo [INFO] ============Build All APK Over!
REM 自动打开输出目录
start "" "%PROJECT_PATH%\%MODULE_NAME%\build\outputs\apk\"
pause