Skip to content

Commit b9eaaad

Browse files
committed
Ad-hoc sign macOS binaries; document Gatekeeper workaround
1 parent 703243a commit b9eaaad

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
if: runner.os != 'Linux'
5858
run: cargo build --release --target ${{ matrix.target }} -p molprint-cli
5959

60+
- name: Ad-hoc sign (macOS)
61+
if: runner.os == 'macOS'
62+
run: codesign --sign - --force --preserve-metadata=entitlements,requirements,flags,runtime "target/${{ matrix.target }}/release/molprint"
63+
6064
- name: Package (Unix)
6165
if: matrix.archive == 'tar.gz'
6266
shell: bash

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Molecular fingerprint computation and similarity search in Rust — fast enough
1212

1313
## Install
1414

15+
**From a release binary** — download from [Releases](https://github.com/mariusrueve/molprint/releases), unpack, and place `molprint` on your `PATH`.
16+
17+
> **macOS note:** binaries are ad-hoc signed but not notarized. After downloading, clear the quarantine flag once:
18+
> ```bash
19+
> xattr -dr com.apple.quarantine molprint
20+
> ```
21+
22+
**From source:**
23+
1524
```bash
1625
cargo install --git https://github.com/mariusrueve/molprint molprint-cli
1726
```

0 commit comments

Comments
 (0)