forked from 1b-agent/opencadstudio-upstream
Merge pull request #1382 from huaninstratech/pr/codesign-xml
ci(release): parse codesign entitlements as xml on newer runners
This commit is contained in:
commit
28e530470f
1 file changed
+4
-2
@@ -492,8 +492,10 @@ jobs:
|
||||
OpenCADStudio.app/Contents/PlugIns/DWGThumbnail.appex
|
||||
codesign --force --sign - --timestamp=none OpenCADStudio.app
|
||||
codesign --verify --deep --strict --verbose=2 OpenCADStudio.app
|
||||
codesign -d --entitlements - OpenCADStudio.app/Contents/PlugIns/DWGThumbnail.appex \
|
||||
| python3 -c 'import plistlib, sys; assert plistlib.load(sys.stdin.buffer).get("com.apple.security.app-sandbox") is True'
|
||||
# --xml keeps newer codesign builds from prefixing text headers,
|
||||
# which made the entitlements parse fail with InvalidFileException.
|
||||
codesign -d --entitlements - --xml OpenCADStudio.app/Contents/PlugIns/DWGThumbnail.appex \
|
||||
| python3 -c 'import io, plistlib, sys; ent = plistlib.load(io.BytesIO(sys.stdin.buffer.read())); print("entitlements:", ent); assert ent.get("com.apple.security.app-sandbox") is True'
|
||||
|
||||
- name: Create .dmg
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user