fix: add mac bridge signature

This commit is contained in:
Tautvydas Derzinskas committed 2026-09-09 19:00:57 +02:00
1 parent 96e41e3b2d
commit e78c7c20ac
2 files changed
+11

No files matched your search

+3
View File
@@ -91,6 +91,9 @@ jobs:
- name: Combine into a universal binary
working-directory: bridge
run: lipo -create -output dist/print-stash-bridge-macos dist/print-stash-bridge-darwin-arm64 dist/print-stash-bridge-darwin-amd64
- name: Re-sign universal binary
working-directory: bridge
run: codesign --force -s - dist/print-stash-bridge-macos
- uses: actions/upload-artifact@v4
with:
name: bridge-macos
+8
View File
@@ -45,6 +45,12 @@ This copies itself into `~/Applications/PrintStash Bridge.app` (a background, Do
and registers the `print-stash://` scheme with Launch Services. If macOS still refuses to run it,
open System Settings -> Privacy & Security and allow it there instead of using `xattr`.
If the terminal instead prints `Killed: 9` (or `[1] ... killed`) the moment you run it, that's a
stale, invalidly-signed binary rather than a Gatekeeper block -- re-sign it yourself and retry:
```bash
codesign --force -s - ~/Downloads/print-stash-bridge-macos
```
## Build
You need Go installed (1.21+ recommended). macOS builds also need Xcode's command line tools
@@ -69,6 +75,8 @@ cd bridge
GOARCH=arm64 go build -o dist/print-stash-bridge-arm64 ./cmd/print-stash-bridge
GOARCH=amd64 go build -o dist/print-stash-bridge-amd64 ./cmd/print-stash-bridge
lipo -create -output dist/print-stash-bridge-macos dist/print-stash-bridge-arm64 dist/print-stash-bridge-amd64
codesign --force -s - dist/print-stash-bridge-macos # lipo invalidates each slice's signature;
# without this, arm64 Macs SIGKILL it on launch
```
## Install (manual)