360 Secure SkillHub
360 安全技能中心

Flutter Release Pipeline

核心功能:预检查Flutter环境与项目路径,构建AAB或APK(可选按ABI拆分),将产物、映射文件、pubspec快照归集到带时间戳的文件夹,生成含校验信息的报告及发布检查清单。典型场景:构建发布包、准备Play商店发布、版本升级、收集符号文件或生成可共享发布文件夹时使用。输入为项目路径、构建模式等参数,输出为结构化产物文件夹及报告,失败则返回错误与修复建议。

neo1307
neo1307
热度 31.84
最近更新 2026-05-11 17:44:07
分类:开发依赖:代码执行应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add neo1307-flutter-release-pipeline
Metadata
name
flutter-release-pipeline
description
Build and package Flutter Android release artifacts (APK/AAB), collect outputs into a single folder, and produce a short release checklist. Use when the user asks to build APK/AAB, prepare a Play Store release, bump version, gather mapping/symbols, or generate a deterministic release folder for sharing.

Flutter Android Release Pipeline

Workflow

  1. Preflight
  • Confirm flutter --version works.
  • Confirm project path contains pubspec.yaml.
  1. Build (choose one)
  • AAB: flutter build appbundle --release
  • APK: flutter build apk --release (optionally --split-per-abi)
  1. Collect artifacts Create out/flutter_release_<timestamp>/ and copy:
  • build/app/outputs/flutter-apk/*.apk (if APK build)
  • build/app/outputs/bundle/release/*.aab (if AAB build)
  • build/app/outputs/mapping/release/mapping.txt (if present)
  • pubspec.yaml (snapshot)
  1. Report
  • Print paths + sizes + SHA256 for each artifact.
  • Print a short checklist (versionCode/versionName sanity, signing, Play Console notes).

Script

Run (PowerShell):

  • powershell -ExecutionPolicy Bypass -File scripts/flutter_release.ps1 -Project "<path>" -Mode aab|apk -SplitPerAbi:$false

Notes

  • Avoid changing app code unless explicitly requested.
  • If build fails, return the exact error + suggested fix.