Mac 投屏签名流程(bundle ID: com.thundersoft.IdeaShare)
1. 导出其它App的entitlements.plist:codesign -d --entitlements - /Applications/Lark.app > info.plist
1.1 签名时告诉证书需要哪些权限:codesign --force --sign "Developer ID Application: Thunder Software Technology Co., Ltd. (4ZAJA8P7J6)" --options runtime --entitlements info.plist IdeaShare.app
2. Mac App 签名:./sign.py
2.1 Mac 对IdeaShare.app/Contents/MacOS/IdeaShare 单独签名
3. 拖拽BlackHole.driver 到其它文件到 Resources 中
3.1 手动使用app压缩为zip
4. Mac App公证:xcrun altool --notarize-app --primary-bundle-id "com.thundersoft.IdeaShare" --username "huxp0116@thundersoft.com" --password "kbry-qnot-pcpc-nscq" --asc-provider 4ZAJA8P7J6 --file IdeaShare.app.zip
5. (可选)公证查询:xcrun altool --notarization-info "d642e864-249d-4f4f-a46e-7eae44914e73" --username "huxp0116@thundersoft.com" --password "kbry-qnot-pcpc-nscq"
5.0 打包pkg 使用Package软件
5.1 编写软件名称、选择生成软件包的路径
5.2 选择Project->Presentation->License->添加中英文协议声明文件
5.3 选择IdeaShare->Settings-> 编写bundle ID、Version、Options(a. Require admin password for installation
b. Require some Application to be closed before installation
c. Overwrite directory permissions)
、 选择Edit 添加 bundle ID
5.4 选择 Application 、点击+号,选中Keep owner and group,添加IdeaShare.app
5.5 选择 Pre-installation 文件(preinstall)、选择Post-installationn文件(preinstall)
5.6 使用command + B进行编译
6. Mac pkg签名:productsign --sign "Developer ID Installer: Thunder Software Technology Co., Ltd. (4ZAJA8P7J6)" IdeaShare.pkg IdeaShare_signed.pkg
7. Mac pkg 公证:xcrun altool --notarize-app --primary-bundle-id "com.thundersoft.IdeaShare" --username "huxp0116@thundersoft.com" --password "kbry-qnot-pcpc-nscq" --asc-provider 4ZAJA8P7J6 --file IdeaShare_signed.pkg
8. Mac pkg 公证查询:xcrun altool --notarization-info "d642e864-249d-4f4f-a46e-7eae44914e73" --username "huxp0116@thundersoft.com" --password "kbry-qnot-pcpc-nscq"
a. 单签包:codesign --force --sign "Developer ID Application: Thunder Software Technology Co., Ltd. (4ZAJA8P7J6)" IdeaShare --options runtime
b. 验签的单包:codesign --verify --deep --verbose=3 IdeaShare