把要更新的app放到/home/data下面

 

安卓:

cat upload_apk.sh
#!/bin/bash
User=xxxxx@qq.com
Pass=xxxxxx

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=xxxxx@qq.com
Pass=xxxxx

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