Skip to content

Commit 2de88cc

Browse files
committed
fix(release): notarize apple dylib extensions
1 parent 74b9f1a commit 2de88cc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,13 @@ jobs:
278278
security import certificate.p12 -k build.keychain -P "${{ secrets.CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign
279279
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.KEYCHAIN_PASSWORD }}" build.keychain
280280
281-
- name: codesign dylib
281+
- name: codesign and notarize dylib
282282
if: matrix.os == 'macos-15' && matrix.name != 'apple-xcframework'
283-
run: codesign --sign "${{ secrets.APPLE_TEAM_ID }}" --timestamp --options runtime dist/ai.dylib
283+
run: |
284+
codesign --sign "${{ secrets.APPLE_TEAM_ID }}" --timestamp --options runtime dist/ai.dylib
285+
ditto -c -k dist/ai.dylib dist/ai.zip
286+
xcrun notarytool submit dist/ai.zip --apple-id "${{ secrets.APPLE_ID }}" --password "${{ secrets.APPLE_PASSWORD }}" --team-id "${{ secrets.APPLE_TEAM_ID }}" --wait
287+
rm dist/ai.zip
284288
285289
- name: codesign and notarize xcframework
286290
if: matrix.name == 'apple-xcframework'

0 commit comments

Comments
 (0)