Cloud compilation-Part 2

Source: Internet
Author: User

The previous article describes what cloud compilation is. This article describes the implementation process, but does not involve specific implementation. It does not cover any programming language, but just the implementation idea.

In fact, there are two steps (taking android as an example ):

1. Prepare the resources of the compiled Project

2. Use the android SDK to package the project

This article describes the first step, which is divided into nine details.

 

Clear directory

The developer will upload their own webpage (.zip), and our program will clear a corresponding directory as the project directory for this packaging task. So there are currently two directories: one is the developer's page, and the other is a project directory.

 

Download Resources

Two things have been done in this step.

1. Pull an android template project from SVN (used as an android prototype for WWW pages)

2. Pull the project dependent on the template project from SVN (it may be a plug-in or a core code)

Maybe you are wondering why it is not faster to first download SVN resources to the local machine, however, the problem is that the svn project may change in real time, so downloading it locally is not feasible. Decompress the pages uploaded by the openers and place them in the Assets Directory of the template project.

 

Copy the plug-in file to the directory

 

 

Dependency module Analysis

 

Certificate settings

Obtain the certificate path from the database, extract the file to the specified directory, and parse the application certificate information and save it to the context information.

 

Configure preprocessing

 

Configuration File builder, parsing Template

 

Task generation Builder

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.