@lynfe/sign-cli
v0.3.0
Published
App Signer 命令行工具:通过一次性网页授权拉取签名凭据,并在本地完成 APK / HAP / IPA 签名
Readme
@lynfe/sign-cli
通过一次性网页授权取得签名凭据,在本地完成 Android APK、HarmonyOS HAP 和 iOS IPA 签名。待签名应用与签名结果不会上传到 App Signer 服务端。
要求 Node.js 20 或更高版本。
安装与使用
npm install --global @lynfe/sign-cli
app-signer sign app.apk --server https://signer.example.com
app-signer sign app.hap --out signed.hap --open
app-signer sign app.ipa --refresh
app-signer cache list
app-signer cache rm <id-or-name>
app-signer cache clear签名凭据会使用 AES-256-GCM 加密缓存在 ~/.app-signer/credentials/。使用 --no-cache 可跳过读取和写入缓存,使用 APP_SIGNER_HOME 可修改缓存目录。
配置服务端(必需)
CLI 不内置默认服务端。使用前必须通过 --server、APP_SIGNER_SERVER 或配置文件提供 base URL。
可将 base URL 直接写入 ~/.config/app-sign-cli:
https://signer.example.com也支持 JSON 格式:
{
"baseUrl": "https://signer.example.com"
}服务端地址优先级为:
--server <url>APP_SIGNER_SERVER~/.config/app-sign-cli(设置XDG_CONFIG_HOME时跟随该目录)
base URL 必须是 http:// 或 https:// origin,不能带路径、查询参数或片段。
第三方签名引擎及其许可证见 THIRD_PARTY_NOTICES.md。
