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