Quick Build apk automatically released to the website for easy testing

Source: Internet
Author: User

Problems encountered:

The developer-generated apk needs to be constantly tested for test installation. Is there a script that automatically uploads the latest apk to the server and lets the test install the test itself? Mac computer

How to set up a file server to start Tomcat function here not to repeat, there is no understanding please you a lot of Baidu and Google and then your localhost enabled!!

Don't be a wuss!!!

Solution:

#!/usr/bin/env  bashtargetpath=/library/webserver/documents/lixiaodaoaaanewrarapkfile =$ (date +%m_%d_%h:%m). Tar . bz2#  build apk filesgradle clean  arcd app/build/outputs/apktar -jcvf ${ Newrarapkfile}  *. APKecho  ${newrarapkfile}mv  ${ Newrarapkfile}  ${targetpath}mv *.apk  ${targetpath}
The effect is as follows:

Quick Build apk automatically released to the website for easy testing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.