Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

gplay-signing-setupgplay 签名设置

Agent Skill

gplay-signing-setup 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,076

周安装

84

GitHub Stars

33

下载量

652
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gplay-signing-setup(gplay 签名设置)
来源仓库:https://github.com/tamtom/gplay-cli-skills
仓库路径:skills/gplay-signing-setup
安装命令:
npx skills add https://github.com/tamtom/gplay-cli-skills --skill gplay-signing-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tamtom/gplay-cli-skills --skill gplay-signing-setup

简介

gplay-signing-setup 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前建议确认权限范围和维护状态,注意是否会触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Android App Signing Setup

Use this skill when you need to set up or manage app signing for Google Play.

Understanding Android App Signing

Android apps must be signed with a certificate before upload. Two signing approaches:

  1. App Signing by Google Play (Recommended) - Google manages your signing key
  2. Manual Signing (Legacy) - You manage your signing key

Create a New Keystore

Generate keystore

keytool -genkey -v \
  -keystore release.keystore \
  -alias my-app-key \
  -keyalg RSA \
  -keysize 2048 \
  -validity 10000

You'll be prompted for:

  • Keystore password (store securely!)
  • Key password (can be same as keystore password)
  • Your name/organization details

Keystore file location

  • Development: Keep locally, never commit to git
  • Production: Store in secure location (password manager, secrets vault)
  • CI/CD: Use encrypted secrets

Configure Gradle Signing

gradle.properties (gitignored)

KEYSTORE_FILE=/path/to/release.keystore
KEYSTORE_PASSWORD=your_keystore_password
KEY_ALIAS=my-app-key
KEY_PASSWORD=your_key_password

app/build.gradle

android {
    signingConfigs {
        release {
            storeFile file(project.property('KEYSTORE_FILE'))
            storePassword project.property('KEYSTORE_PASSWORD')
            keyAlias project.property('KEY_ALIAS')
            keyPassword project.property('KEY_PASSWORD')
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
}

Using environment variables (CI/CD)

android {
    signingConfigs {
        release {
            storeFile file(System.getenv("KEYSTORE_FILE") ?: "release.keystore")
            storePassword System.getenv("KEYSTORE_PASSWORD")
            keyAlias System.getenv("KEY_ALIAS")
            keyPassword System.getenv("KEY_PASSWORD")
        }
    }
}

Play App Signing Setup

Enable Play App Signing (New App)

  1. Build and sign AAB with upload key: ./gradlew bundleRelease
  2. Upload AAB to Play Console: gplay release \ --package com.example.app \ --track internal \ --bundle app-release.aab
  3. Google Play generates app signing key automatically
  4. Download upload certificate:

- Go to Play Console → App → Setup → App signing - Download "Upload certificate" (will be used for future uploads)

Migrate Existing App to Play App Signing

If your app uses manual signing:

  1. Export upload key: keytool -export -rfc \ -keystore release.keystore \ -alias my-app-key \ -file upload_cert.pem
  2. Encrypt private key (required by Google): # Generate password for encryption openssl rand -base64 32 > encryption_password.txt # Export and encrypt private key keytool -importkeystore \ -srckeystore release.keystore \ -destkeystore encrypted.p12 \ -deststoretype PKCS12 \ -srcalias my-app-key \ -deststorepass $(cat encryption_password.txt)
  3. Upload to Play Console:

- Go to Play Console → App → Setup → App signing - Choose "Export and upload a key" - Upload encrypted.p12 and encryption_password.txt

  1. Download new upload key:

- After migration, download new upload certificate - Use this for all future uploads

Verify Keystore

List keys in keystore

keytool -list -v -keystore release.keystore

Check certificate validity

keytool -list -v \
  -keystore release.keystore \
  -alias my-app-key \
  | grep Valid

Extract certificate fingerprint

# SHA-256 (for Firebase, etc.)
keytool -list -v \
  -keystore release.keystore \
  -alias my-app-key \
  | grep SHA256

Verify APK/AAB Signature

Check AAB signature

jarsigner -verify -verbose -certs app-release.aab

Check APK signature

jarsigner -verify -verbose -certs app-release.apk

CI/CD Signing

GitHub Actions Example

- name: Decode keystore
  run: |
    echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > release.keystore

- name: Build signed AAB
  env:
    KEYSTORE_FILE: release.keystore
    KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
    KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
    KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
  run: |
    ./gradlew bundleRelease

- name: Clean up keystore
  if: always()
  run: rm -f release.keystore

Store keystore as base64

# Encode keystore to base64
base64 -i release.keystore -o keystore_base64.txt

# Add to GitHub Secrets as KEYSTORE_BASE64

Upload Certificate Management

Register upload certificate for existing app

If you lose your upload key:

  1. Generate new keystore (as shown above)
  2. Export certificate: keytool -export -rfc \ -keystore new-upload.keystore \ -alias my-app-key \ -file new_upload_cert.pem
  3. Contact Google Play support to reset upload key:

- Go to Play Console → Help - Request upload certificate reset - Provide new_upload_cert.pem

Security Best Practices

DO:

  • ✅ Use strong passwords (16+ characters)
  • ✅ Store keystore in multiple secure locations
  • ✅ Use different keys for different apps
  • ✅ Enable Play App Signing
  • ✅ Keep upload key separate from production
  • ✅ Document key details securely (not passwords!)
  • ✅ Set calendar reminder for key expiration (10-25 years)

DON'T:

  • ❌ Commit keystores to git
  • ❌ Share keystores via email/chat
  • ❌ Use weak or obvious passwords
  • ❌ Store passwords in code
  • ❌ Forget to backup keystores
  • ❌ Use same key for debug and release

Keystore Backup Strategy

What to backup:

  1. Keystore file (release.keystore)
  2. Key alias name
  3. Keystore password (in password manager)
  4. Key password (in password manager)

Where to backup:

  • Password manager (1Password, LastPass, etc.)
  • Encrypted cloud storage
  • Company secrets vault
  • Physical secure storage (for enterprise)

Test restore process:

# Verify you can use the backup
keytool -list -v -keystore backup/release.keystore

Troubleshooting

"jarsigner: unable to sign jar"

  • Check keystore password is correct
  • Verify keystore file path
  • Ensure keystore alias exists

"Failed to read key from keystore"

  • Key alias might be wrong
  • Key password might be wrong
  • Keystore might be corrupted

"Upload certificate doesn't match"

  • You're using wrong keystore
  • Keystore was regenerated (contact support)
  • Using app signing key instead of upload key

Lost keystore?

  • If using Play App Signing: Contact Google to reset upload key
  • If not using Play App Signing: Cannot recover, must publish new app

Multiple Apps, Multiple Keys

Organize multiple keystores

~/keystores/
├── app1-release.keystore
├── app2-release.keystore
└── app3-release.keystore

Use different gradle.properties per app

# app1/gradle.properties
KEYSTORE_FILE=~/keystores/app1-release.keystore
KEY_ALIAS=app1-key

# app2/gradle.properties
KEYSTORE_FILE=~/keystores/app2-release.keystore
KEY_ALIAS=app2-key

Key Rotation

Android apps are typically signed with long-lived keys (10-25 years), but if you need to rotate:

  1. Only possible with Play App Signing enabled
  2. Contact Google Play Support to rotate app signing key
  3. Upload new upload certificate when prompted
  4. All future builds must use new upload key

Documentation Template

Keep this info in your password manager:

App Name: My Awesome App
Package: com.example.app
Keystore File: release.keystore (backed up in Dropbox)
Keystore Password: [IN PASSWORD MANAGER]
Key Alias: my-app-key
Key Password: [IN PASSWORD MANAGER]
Certificate Validity: Valid until 2035-02-05
SHA-256 Fingerprint: AB:CD:EF:12:...
Play App Signing: Enabled
Notes: Upload key only, Google manages app signing key

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.04%
按下载量换算228

Claude

27.56%
按下载量换算180

Cursor

20.64%
按下载量换算135

Gemini CLI

10.41%
按下载量换算68

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills