Android Build
Published by binary-dracula in breezejp
Audit unavailable1 installs
What this skill does
Build Flutter Android AAB and APK, then copy both artifacts to release/. Use when: android 打包, 生成 aab, 生成 apk, 发布包构建, release 产物输出。
Add Android Build to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "android-build" from https://github.com/binary-dracula/breezejpInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/binary-dracula/breezejp --skill android-buildSkill instructions
Android Build
规范化 Flutter Android 发布包打包流程,确保 .aab 和 .apk 两种产物统一输出到项目根目录 release/,并使用固定命名规则。
When to Use
- 需要生成 Android 发布包(
.aab和.apk) - 需要统一 release 产物命名与输出路径
- 用户提到「打包 Android」「构建 AAB」「构建 APK」「发布构建」
Skill Resources
- 构建脚本: scripts/android_build.py
Procedure
- 在项目根目录确认
pubspec.yaml存在,且version字段正确。 - 运行脚本:
python3 .agents/skills/android-build/scripts/android_build.py - 脚本会依次执行
flutter build appbundle --release和flutter build apk --release。 - 产物分别从
build/app/outputs/bundle/release/app-release.aab与build/app/outputs/flutter-apk/app-release.apk复制到release/。 - 最终文件名为
breeze_jp_v{version}_release.aab和breeze_jp_v{version}_release.apk(version取自pubspec.yaml的主版本,不含+build)。
Output
release/breeze_jp_v{version}_release.aabrelease/breeze_jp_v{version}_release.apk
Validation
- 检查终端返回码为
0。 - 确认
release/下生成目标.aab和.apk文件。 - 文件名版本号与
pubspec.yaml一致。
Files included
- scripts/android_build.py
- SKILL.md

