Skip to content

Commit 15c84e1

Browse files
committed
2 parents f29b49f + a78792b commit 15c84e1

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
@@ -119,9 +119,13 @@ jobs:
119119
security import certificate.p12 -k build.keychain -P "${{ secrets.CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign
120120
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.KEYCHAIN_PASSWORD }}" build.keychain
121121
122-
- name: codesign dylib
122+
- name: codesign and notarize dylib
123123
if: matrix.os == 'macos-15' && matrix.name != 'apple-xcframework'
124-
run: codesign --sign "${{ secrets.APPLE_TEAM_ID }}" --timestamp --options runtime dist/cloudsync.dylib
124+
run: |
125+
codesign --sign "${{ secrets.APPLE_TEAM_ID }}" --timestamp --options runtime dist/cloudsync.dylib
126+
ditto -c -k dist/cloudsync.dylib dist/cloudsync.zip
127+
xcrun notarytool submit dist/cloudsync.zip --apple-id "${{ secrets.APPLE_ID }}" --password "${{ secrets.APPLE_PASSWORD }}" --team-id "${{ secrets.APPLE_TEAM_ID }}" --wait
128+
rm dist/cloudsync.zip
125129
126130
- name: codesign and notarize xcframework
127131
if: matrix.name == 'apple-xcframework'

0 commit comments

Comments
 (0)