公证

Build Status Swift 5.1 Contributors Forks Stargazers Issues MIT License Become a Patron! Buy me a coffee

一个用于公证您的 .app 文件的工具。

还可以获取与 xcrun altool 不同的格式(如 JSON)的公证信息。

公证工具可以为您做什么?

安装

使用源码

git clone https://github.com/phimage/Notarize.git
cd Notarize
make install

必须安装 Xcode

用法

您可以通过 notarize help 查看所有描述

$ notarize help
Available commands:

help       Display general or command-specific help
history    Show history
info       Show information
notarize   Notarize (default command)
version    Display the current version of notarize

公证命令

$ notarize --app Your/App.app --username "me" --password "keychain@dummy"

团队 ID

$ notarize --app Your/App.app --username "me" --password "keychain@dummy" --ascProvider "MYTEAMID"

历史命令

$ notarize history --username "me" --password "keychain@dummy"

信息命令

$ notarize info --uuid a1b2c3d4e5f6 --username "me" --password "keychain@dummy"

在任何命令中使用报告器

$ notarize info --uuid a1b2c3d4e5f6 --username "me" --password "keychain@dummy" --reporter xml
$ notarize info --uuid a1b2c3d4e5f6 --username "me" --password "keychain@dummy" --reporter json

配置

您可以通过在您的工作目录中添加一个 .notarize.yml 文件来配置 notarize

描述
用户名 用户名。
密码 密码。
ascProvider asc provider
报告器 如何显示信息:json, xml
username: "me"
password: "keychain@dummy"
reporter: "json"

您也可以使用 --config 参数来使用此配置文件。

$ notarize --app Your/App.app --config "path/to/.notarize.yml`"

依赖

在线显示图表

贡献

Fork 并提交 PR

待办