Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ bundle: fetch-llama build
@# filepath.Dir(os.Executable())/llama default resolves correctly.
mkdir -p $(BUNDLE_DIR)/llama
cp -R $(LLAMA_DIR)/. $(BUNDLE_DIR)/llama/
ifeq ($(OS),darwin)
@# macOS Sequoia (26+) tightened amfid: ad-hoc-signed binaries whose
@# linked dylibs carry stale signatures or a com.apple.provenance
@# xattr from the previous bundle get SIGKILL'd within milliseconds
@# of execve — supervisor sees "signal: killed" with empty stderr.
@# `cp -R` creates new files macOS treats as untrusted, so the strip
@# + deep re-sign must run on every bundle, not just first install.
@xattr -cr $(BUNDLE_DIR)/llama/
@codesign --force --deep --sign - $(BUNDLE_DIR)/llama/llama-server
endif
@echo "Bundle ready: $(BUNDLE_DIR)"
@echo "Optional: tar czf $(DIST_DIR)/$(BUNDLE_NAME).tar.gz -C $(DIST_DIR) $(BUNDLE_NAME)"

Expand Down
Loading