App Packager for Openclaw

An automated packaging assistant that handles Git branch switching, cross-platform builds, and distribution uploads for mobile applications.

heigher
v1.0.0
Mar 19, 2026
0
817
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install app-packager

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install app-packager using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is App Packager?

App Packager is a specialized tool within the Openclaw Skills ecosystem designed to streamline the mobile application build process. It eliminates the manual overhead of switching Git branches and running complex build scripts by providing a unified interface for generating Android APKs and iOS IPAs. Whether you are a developer looking to automate local builds or a CI/CD enthusiast, this skill ensures consistency across build environments.

The skill integrates deeply with Git to fetch and track branches before triggering the build lifecycle. It supports multiple build types—including debug, adhoc, and release—and features built-in integration with Pgyer (蒲公英) for automated beta distribution. By utilizing Openclaw Skills, teams can ensure that every build is documented with custom release notes and organized within a predictable directory structure.

App Packager Use Cases

  • Automating the creation of Android and iOS installation packages from specific Git branches.
  • Generating release-ready bundles for app store submission or internal QA testing.
  • Batch building multi-channel packages (channel packages) for Android distribution.
  • Automatically uploading build artifacts to Pgyer with custom API keys and update descriptions.
  • Quick branch switching and environment synchronization before starting long-running build tasks.

How App Packager Works

  1. Intent Parsing: The skill analyzes user input to extract parameters such as branch name, target platform, build type (debug/release), and Pgyer API keys.
  2. Pre-flight Check: It verifies the existence of the project path, script execution permissions (chmod +x), and Git availability.
  3. Branch Management: The workflow performs a git fetch, checks if the target branch exists locally or remotely, and switches to it while pulling the latest changes.
  4. Build Execution: It invokes the core build script (pgyer_all.sh) with the mapped parameters, capturing real-time logs and handling errors.
  5. Post-Build Notification: After completion, the skill calculates build duration, identifies generated .apk or .ipa files, and provides download links if uploaded to Pgyer.

App Packager Setup

To use this skill within Openclaw Skills, ensure your project is located at the specified path and the build scripts are executable.

# Navigate to your local Openclaw workspace
cd ~/.openclaw/workspace/skills/app-packager/scripts/

# Ensure the packaging script has execution permissions
chmod +x app-packager
chmod +x ./pgyer_all.sh

# Example command to build and upload
./app-packager --branch develop --platform android --upload --api-key YOUR_API_KEY --desc "Fixed UI bugs"

App Packager Data Schema & Taxonomy

The App Packager organizes build artifacts and logs based on the following structure:

Data Type Location / Format Description
Build Artifacts /build/ Contains generated .apk and .ipa files.
Execution Logs build.log Full output of the pgyer_all.sh execution.
Metadata Git Tags/Branches Uses Git metadata to version the builds.
Configuration pubspec.yaml Default versioning source for Flutter-based projects.

App Packager Advanced Features

  • Natural Language Triggering: Start complex builds by simply telling the agent to "Build Android on the develop branch."
  • Dual-Platform Builds: Support for concurrent iOS and Android packaging in a single command.
  • Multi-Channel Support: Automated generation of varied Android channel packages.
  • Smart Error Diagnostics: Automatically analyzes build failures to suggest fixes for Flutter environment issues, dependency conflicts, or signing certificate errors.
  • Automated Notifications: Provides a detailed summary including build time, file paths, and distribution links.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*