[PR #13713] [MERGED] scripts: fix macOS auto-update signature verification failure #14359

Closed
opened 2026-04-13 00:51:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13713
Author: @jmorganca
Created: 1/14/2026
Status: Merged
Merged: 1/14/2026
Merged by: @jmorganca

Base: mainHead: jmorgan/ditto-nosrc


📝 Commits (1)

  • edd8c69 scripts: fix macOS auto-update signature verification failure

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 scripts/build_darwin.sh (+2 -2)

📄 Description

Add --norsrc flag to ditto commands when creating Ollama-darwin.zip to exclude AppleDouble resource fork files (._* files) from the archive.

The mlx.metallib file has extended attributes, which causes ditto to include a ._mlx.metallib AppleDouble file in the zip. Since this file is not part of the code signature seal, macOS rejects the bundle during auto-update verification with:

"a sealed resource is missing or invalid"
"file added: .../._mlx.metallib"

The --norsrc flag prevents ditto from preserving resource forks and extended attributes, ensuring only signed files are included in the release archive.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13713 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorgan/ditto-nosrc` --- ### 📝 Commits (1) - [`edd8c69`](https://github.com/ollama/ollama/commit/edd8c69df3fbb416f3c6008de58fa1b4c84fd3d9) scripts: fix macOS auto-update signature verification failure ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `scripts/build_darwin.sh` (+2 -2) </details> ### 📄 Description Add --norsrc flag to ditto commands when creating Ollama-darwin.zip to exclude AppleDouble resource fork files (._* files) from the archive. The mlx.metallib file has extended attributes, which causes ditto to include a ._mlx.metallib AppleDouble file in the zip. Since this file is not part of the code signature seal, macOS rejects the bundle during auto-update verification with: "a sealed resource is missing or invalid" "file added: .../._mlx.metallib" The --norsrc flag prevents ditto from preserving resource forks and extended attributes, ensuring only signed files are included in the release archive. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:51:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#14359