Skip to content

Commit 5548c99

Browse files
committed
fix: notarize each binary individually via notarytool
Submit each signed binary to Apple Notary Service separately so every CDHash is registered. Distribute as tar.gz. Made-with: Cursor
1 parent 1207363 commit 5548c99

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/build-turboquant-macos.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,30 @@ jobs:
135135
find build -name "*.dylib" -exec cp {} release/build/bin/ \; 2>/dev/null || true
136136
find build -name "*.metal" -path "*/bin/*" -exec cp {} release/build/bin/ \; 2>/dev/null || true
137137
cd release
138-
zip -r ../llama-turboquant-macos-arm64.zip .
139138
tar -czf ../llama-turboquant-macos-arm64.tar.gz .
140139
cd ..
141-
ls -lh llama-turboquant-macos-arm64.zip llama-turboquant-macos-arm64.tar.gz
140+
ls -lh llama-turboquant-macos-arm64.tar.gz
142141
143-
- name: Notarize
142+
- name: Notarize binaries
144143
env:
145144
APPLE_ID: ${{ secrets.APPLE_ID }}
146145
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
147146
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
148147
run: |
149-
echo "Submitting zip for notarization..."
150-
xcrun notarytool submit llama-turboquant-macos-arm64.zip \
151-
--apple-id "$APPLE_ID" \
152-
--password "$APPLE_ID_PASSWORD" \
153-
--team-id "$APPLE_TEAM_ID" \
154-
--wait --timeout 10m
155-
echo "Notarization complete — CDHash registered with Apple"
148+
for bin in build/bin/llama-server build/bin/llama-cli build/bin/llama-bench build/bin/llama-perplexity; do
149+
if [ -f "$bin" ]; then
150+
name=$(basename "$bin")
151+
echo "=== Notarizing $name ==="
152+
zip -j "${name}.zip" "$bin"
153+
xcrun notarytool submit "${name}.zip" \
154+
--apple-id "$APPLE_ID" \
155+
--password "$APPLE_ID_PASSWORD" \
156+
--team-id "$APPLE_TEAM_ID" \
157+
--wait --timeout 10m
158+
rm "${name}.zip"
159+
echo "=== $name notarized ==="
160+
fi
161+
done
156162
157163
- name: Clean up keychain
158164
if: always()

0 commit comments

Comments
 (0)