坚持QtQML,坚持移动互联网

http://www.qtcn.org/bbs/u/121778  [收藏] [复制]

toby520

将QtCoding进行到底,做Qt的宠儿

  • 90

    关注

  • 172

    粉丝

  • 3592

    访客

  • 等级:精灵王
  • 身份:论坛版主
  • 总积分:1265
  • 男,1986-11-17

最后登录:2024-07-19

更多资料

日志

Qt Mac App 带有QtWebEngineProcess下签名血泪经验

2024-06-27 10:19

# 坑在签名顺序问题!!!
# 必须要先签名  XXX Desktop.app
# 再签名QtWebEngineProcess.app
# 反序就是签名包无法正常运行QtWebEngineProcess.app

apppath=XXX.app
developcert="You Company license"
frameworkpath=XXX.app/Contents/Frameworks


#sign app
echo "====\033[41;37mNotice\033[0m: ====sign app====> "
codesign  --force --verify --deep --options=runtime -s "${developcert}"  "$apppath"

echo "====\033[41;37mNotice\033[0m: ====sign QtWebEngineProcess=frameworkpath:===> " ${frameworkpath}
entitle_path="/Users/XXX/5.15.10_macosx_build_universal_2024_0625/QtWebEngineProcess.entitlements"
cp -r -f "${entitle_path}" "${frameworkpath}/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/Resources/QtWebEngineProcess.entitlements"

codesign  --force --verify --deep --options=runtime -s "${developcert}"  "${frameworkpath}/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app"
codesign -f -v -s "${developcert}" --entitlements "${entitle_path}" --options=runtime "${frameworkpath}/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess"

分类:默认分类|回复:0|浏览:51|全站可见|转载
 

Powered by phpwind v8.7 Certificate Copyright Time now is:07-20 06:02
©2005-2016 QTCN开发网 版权所有 Gzip disabled