From a465887fe3dcfaa89b9b8c0aaf0a180aee25a466 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Fri, 31 Aug 2018 17:27:48 +0800 Subject: [PATCH] 20140144: Job [HRB_Mobile_PT_apk] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/HRB_Mobile_PT_apk/config.xml | 102 ++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 jobs/HRB_Mobile_PT_apk/config.xml diff --git a/jobs/HRB_Mobile_PT_apk/config.xml b/jobs/HRB_Mobile_PT_apk/config.xml new file mode 100644 index 00000000..9a1df157 --- /dev/null +++ b/jobs/HRB_Mobile_PT_apk/config.xml @@ -0,0 +1,102 @@ + + + + 打包正式版到 Play Store 的 beta channel + false + + + ylhealth + + + + + HRB_Mobile_Prod_Branch + appstore 測試使用的版本,如: +release/1.15GA +hotfix/1.14.1GA + master + false + + + + + + 2 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + */${HRB_Mobile_Prod_Branch} + + + false + + + + MAC_BUILD_Machine + false + false + false + false + + false + + + PATH="$PATH:/usr/local/bin:/Users/scott/.fastlane/bin/" +export VERSION=$(grep appVersion appConfig.json|cut -d'"' -f4)_$(git rev-parse --short HEAD) +MODIFIED_DATE=$(git log -1 --format="%ci" --) + +npm install +# RNFB_ANDROID_PERMISSIONS=true react-native link + +sed -i "" '/url/s/http.*\//https:\/\/hrb.foxconn.com\//g' src/configs/index.js +sed -i '' "/version/s/\'.*\';/\'${VERSION}\';/" src/configs/index.js +sed -i '' "/modifiedTime/s/\'.*\';/\'${MODIFIED_DATE}\';/" src/configs/index.js +sed -i '' 's/piwikSiteId_ios =.*/piwikSiteId_ios = 10;/ ;s/piwikSiteId_android =.*/piwikSiteId_android = 11;/' src/configs/index.js + +export ANDROID_HOME=/Users/jenkins/Library/Android/sdk + +node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./android --entry-file index.worker.js --platform android --bundle-output ./android/app/src/main/assets/index.worker.bundle --sourcemap-output ./android/app/src/main/assets/index.worker.map + +fastlane android pt + + + VERSION=PT_$(date +%Y%m%d)_$(git rev-parse --short HEAD) +MODIFIED_DATE=$(git log -1 --format="%ci" --) +NAME=HRB_Mobile + +mv android/app/build/outputs/apk/release/app-release.apk ~/Sites/${NAME}_${VERSION}.apk +scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/hrb/ + + + + + $RD_Group $QA_Group + false + false + + + + + false + + + + + xterm + + + + \ No newline at end of file -- 2.26.2