Build game channel packages using Function Compute

更新时间:
复制 MD 格式

This topic describes how to use a combination of Serverless Workflow, Function Compute, Object Storage Service (OSS), and Simple Log Service to automatically and concurrently build game channel packages for distribution with a single click.

Scenarios

Before distribution, game publishers often build packages for different distribution channels by combining the main game package with specific channel resources. This process is often performed manually, which is error-prone, inefficient, and expensive.

Solution overview

Figure 1. Solution architectureimageserverlesskehuanli
Figure 2. Solution flowchart方案流程

The solution flow is as follows:

  1. pre-process: Retrieve and organize information from the input parameters, such as OSS details and signing credentials.
  2. build-game-apk: Pull the main package, apktool, and channel resource packages from OSS, and then concurrently build the packages.
  3. after-process: Perform cleanup tasks.

Benefits

  • Serverless Workflow: The process runs automatically when triggered by an event and requires no manual intervention. Serverless Workflow tracks the entire packaging flow, which improves the success rate.
  • Fully managed: Provides monitoring, alerting, and logs for each function execution.
  • High efficiency: You can build multiple channel packages concurrently. Configuration templates eliminate the need to modify code, which improves packaging efficiency.
  • Low cost: Function Compute provides high resource utilization, which significantly reduces compute resource costs.

Details

For more information, see Game Packaging Based on Function Compute.