标签:user nbsp 使用 cli 安卓 sed cat refresh bsp
把要更新的app放到/home/data下面
安卓:
cat upload_apk.sh
#!/bin/bash
User=771167002@qq.com
Pass=0!B2pjO41Rb4
qrsctl-v3.1.20161125 login ${User} ${Pass}
qrsctl-v3.1.20161125 put -c s-----l $1 "/home/data/"$1
ansible app -S -R root -m shell -a "sed -ri "s/app-.*.apk/$1/" /data/www/config.js"
使用方法:
upload_apk.sh apk文件名
苹果:
#!/bin/bash
User=771167002@qq.com
Pass=0!B2pjO41Rb4
qrsctl-v3.1.20161125 login ${User} ${Pass}
qrsctl-v3.1.20161125 del s-----l ios.ipa
qrsctl-v3.1.20161125 put -c s-----l ios.ipa "/home/data/ios.ipa"
qrsctl-v3.1.20161125 cdn/refresh s-----l http://client.hec66.com/ios.ipa
标签:user nbsp 使用 cli 安卓 sed cat refresh bsp
原文地址:http://www.cnblogs.com/zhaojonjon/p/6208847.html