码迷,mamicode.com
首页 > 移动开发 > 详细

Android一键打包(react native)

时间:2018-11-21 12:16:41      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:技术   user   ops   bsp   als   load   tps   ruby   lib   

Android自动化打包配置截图如下:

技术分享图片

 

技术分享图片

 

技术分享图片

 

技术分享图片

 

export YARN_HOME=/usr/local/Cellar/yarn/1.5.1_1/bin
export PATH=$PATH:$YARN_HOME
export NODE_HOME=/Users/devops/.nvm/versions/node/v10.8.0
export PATH=$NODE_HOME/bin:$PATH
export POD_HOME=/Users/devops/.rvm/gems/ruby-2.4.0
export PATH=$POD_HOME/bin:$PATH
export ANDROID_HOME=/Users/devops/Library/Android/sdk
# export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
echo $PATH
yarn install
#cnpm install
react-native bundle --entry-file index.js --platform android --dev false --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res/
cd android && ./gradlew assembleRelease -x lint

#file=‘find . -name *.apk‘
#curl -F "file=@$file" -F "uKey=1367d748482b5c460ba7a750dd4b41ca" -F "_api_key=dc3c75b8c1d8e264a286414478b4d372" https://www.pgyer.com/apiv1/app/upload
#Debug
#curl -F "file=@/Users/devops/.jenkins/workspace/Starup_Android/app/build/outputs/apk/local/debug/localDebug-debug-local.apk" -F "uKey=1367d748482b5c460ba7a750dd4b41ca" -F "_api_key=dc3c75b8c1d8e264a286414478b4d372" https://www.pgyer.com/apiv1/app/upload
curl -F "file=@/Users/devops/.jenkins/workspace/poseidon_android/android/app/build/outputs/apk/release/app-release.apk" -F "uKey=1367d748482b5c460ba7a750dd4b41ca" -F "_api_key=dc3c75b8c1d8e264a286414478b4d372" https://www.pgyer.com/apiv1/app/upload
#Release
#curl -F "file=@/Users/devops/.jenkins/workspace/Starup_Android/app/build/outputs/apk/local/release/localRelease-release-local.apk" -F "uKey=1367d748482b5c460ba7a750dd4b41ca" -F "_api_key=dc3c75b8c1d8e264a286414478b4d372" https://www.pgyer.com/apiv1/app/upload

Android一键打包(react native)

标签:技术   user   ops   bsp   als   load   tps   ruby   lib   

原文地址:https://www.cnblogs.com/lucy-lily/p/9993850.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!