@@ -125,7 +125,7 @@ jobs:
125125 --sign "$CODESIGN_IDENTITY" "$lib"
126126 done
127127
128- - name : Prepare release contents
128+ - name : Prepare release archive
129129 run : |
130130 mkdir -p release/build/bin
131131 cp build/bin/llama-server release/build/bin/
@@ -134,31 +134,25 @@ jobs:
134134 cp build/bin/llama-perplexity release/build/bin/ 2>/dev/null || true
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
137+ cd release
138+ zip -r ../llama-turboquant-macos-arm64.zip .
139+ tar -czf ../llama-turboquant-macos-arm64.tar.gz .
140+ cd ..
141+ ls -lh llama-turboquant-macos-arm64.zip llama-turboquant-macos-arm64.tar.gz
137142
138- - name : Create DMG
139- run : |
140- hdiutil create -volname "LlamaTurboQuant" \
141- -srcfolder release \
142- -ov -format UDZO \
143- llama-turboquant-macos-arm64.dmg
144- ls -lh llama-turboquant-macos-arm64.dmg
145-
146- - name : Notarize DMG
143+ - name : Notarize
147144 env :
148145 APPLE_ID : ${{ secrets.APPLE_ID }}
149146 APPLE_ID_PASSWORD : ${{ secrets.APPLE_ID_PASSWORD }}
150147 APPLE_TEAM_ID : ${{ secrets.APPLE_TEAM_ID }}
151148 run : |
152- echo "Submitting DMG for notarization..."
153- xcrun notarytool submit llama-turboquant-macos-arm64.dmg \
149+ echo "Submitting zip for notarization..."
150+ xcrun notarytool submit llama-turboquant-macos-arm64.zip \
154151 --apple-id "$APPLE_ID" \
155152 --password "$APPLE_ID_PASSWORD" \
156153 --team-id "$APPLE_TEAM_ID" \
157154 --wait --timeout 10m
158- echo "Stapling notarization ticket to DMG..."
159- xcrun stapler staple llama-turboquant-macos-arm64.dmg
160- echo "Verifying staple..."
161- xcrun stapler validate llama-turboquant-macos-arm64.dmg
155+ echo "Notarization complete — CDHash registered with Apple"
162156
163157 - name : Clean up keychain
164158 if : always()
@@ -190,18 +184,15 @@ jobs:
190184
191185 ### Usage
192186 ```bash
193- # Mount the DMG, then copy binaries:
194- hdiutil attach llama-turboquant-macos-arm64.dmg
195- cp -R /Volumes/LlamaTurboQuant/build/bin/ ./llama-bin/
196- hdiutil detach /Volumes/LlamaTurboQuant
197- ./llama-bin/llama-server -m model.gguf --cache-type-k turbo3 --cache-type-v turbo3
187+ tar -xzf llama-turboquant-macos-arm64.tar.gz
188+ ./build/bin/llama-server -m model.gguf --cache-type-k turbo3 --cache-type-v turbo3
198189 ```
199190
200191 ### For Atomic Chat integration
201192 Replace the binary at:
202193 ```
203194 ~/Library/Application Support/Atomic Chat/data/llamacpp/backends/<version>/macos-arm64/build/bin/llama-server
204195 ```
205- files : llama-turboquant-macos-arm64.dmg
196+ files : llama-turboquant-macos-arm64.tar.gz
206197 draft : false
207198 prerelease : true
0 commit comments