diff --git a/Jenkinsfile.ios b/Jenkinsfile.ios index 2d8ed1c2..a13da8b4 100644 --- a/Jenkinsfile.ios +++ b/Jenkinsfile.ios @@ -23,14 +23,11 @@ pipeline { stage('清理旧构建') { steps { sh "rm -rf dist/" // 清理 UniApp 打包生成的 dist 目录 -// sh "rm -rf android/simpleDemo/build/" // 清理 Android 项目构建缓存 - sh "rm -rf ${ASSETS_DIR}" // 清理旧的 APP 资源文件目录 +// sh "rm -rf ${ASSETS_DIR}" // 清理旧的 APP 资源文件目录 } } stage('安装依赖') { steps { -// echo "✅ 从清华源安装缺失的 uts 二进制包" -// sh "npm install @dcloudio/uts-linux-x64-gnu --force --registry=https://registry.npmmirror.com" echo "✅ 安装 UniApp 依赖(忽略平台+开权限+强制)" sh "npm install --force --unsafe-perm --ignore-platform" } @@ -59,21 +56,21 @@ pipeline { echo "✅ 版本号:${env.versionCode}" } } - stage('打包uniapp') { - steps { - sh "npm run build:app-plus:${env.BRANCH_NAME}" - } - } - stage('复制UniApp资源到目录') { - steps { - echo "开始复制 dist 资源到 ${ASSETS_DIR}" - // 先创建目标目录(防止目录不存在报错) - sh "mkdir -p ${ASSETS_DIR}" - // 把 dist 里所有文件 复制 到安卓资源目录(推荐) - sh "cp -rf dist/build/app/* ${ASSETS_DIR}/" - echo "✅ 资源复制完成" - } - } +// stage('打包uniapp') { +// steps { +// sh "npm run build:app-plus:${env.BRANCH_NAME}" +// } +// } +// stage('复制UniApp资源到目录') { +// steps { +// echo "开始复制 dist 资源到 ${ASSETS_DIR}" +// // 先创建目标目录(防止目录不存在报错) +// sh "mkdir -p ${ASSETS_DIR}" +// // 把 dist 里所有文件 复制 到安卓资源目录(推荐) +// sh "cp -rf dist/build/app/* ${ASSETS_DIR}/" +// echo "✅ 资源复制完成" +// } +// } // ====================== 构建 IPA ====================== stage('配置SDK & 赋予权限 & 编译IOS') { steps {