把要更新的app放到/home/data下面
安卓:
cat upload_apk.sh
#!/bin/bash
[email protected]
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
[email protected]
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
时间: 2024-11-11 03:12:13