diff --git a/Jenkinsfile b/Jenkinsfile index 58345cc9..c6b601c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,6 +33,16 @@ pipeline { sh "npm run build:app-plus:${env.BRANCH_NAME}" } } + stage('复制UniApp资源到安卓assets目录') { + steps { + echo "开始复制 dist 资源到 ${ANDROID_ASSETS_DIR}" + // 先创建目标目录(防止目录不存在报错) + sh "mkdir -p ${ANDROID_ASSETS_DIR}" + // 把 dist 里所有文件 复制 到安卓资源目录(推荐) + sh "cp -rf dist/* ${ANDROID_ASSETS_DIR}/" + echo "✅ 资源复制完成" + } + } // // stage('构建 & 测试') {