Skip to content

Commit bb1d163

Browse files
davideulerclaude
andcommitted
Note Apple Silicon-only prebuilt binaries; Intel Mac must build from source
- Homebrew tap and pre-built binaries are Apple Silicon (arm64) only - Formula raises clear error on Intel Mac directing to source build - Remove Intel Mac from quick-install script and download table - Add clone + cargo build instructions for source installs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 48a5fe6 commit bb1d163

3 files changed

Lines changed: 29 additions & 30 deletions

File tree

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@ A lightweight, Rust-based secrets vault designed for AI agents and automated pip
66

77
## Installation
88

9-
### Homebrew (macOS)
9+
### Homebrew (macOS Apple Silicon)
1010

1111
```bash
1212
brew tap davideuler/cortex-auth
1313
brew install cortex-auth
1414
```
1515

16-
### Direct download
16+
> **Note:** The Homebrew tap provides pre-built binaries for **Apple Silicon (M1/M2/M3) only**.
17+
> macOS Intel users should [build from source](#build-from-source).
1718
18-
Download pre-built binaries from the [GitHub Releases](https://github.com/davideuler/cortex-auth/releases) page.
19+
### Pre-built binaries (Linux / macOS Apple Silicon)
1920

20-
### Quick install (Linux / macOS)
21+
Download from the [GitHub Releases](https://github.com/davideuler/cortex-auth/releases) page.
2122

2223
```bash
2324
VERSION=v0.1.1
2425

2526
# Detect platform
2627
case "$(uname -s)-$(uname -m)" in
2728
Darwin-arm64) TARGET=aarch64-apple-darwin ;;
28-
Darwin-x86_64) TARGET=x86_64-apple-darwin ;;
2929
Linux-x86_64) TARGET=x86_64-unknown-linux-musl ;;
3030
Linux-aarch64) TARGET=aarch64-unknown-linux-musl ;;
31-
*) echo "Unsupported platform"; exit 1 ;;
31+
*) echo "No pre-built binary for this platform — see Build from source below"; exit 1 ;;
3232
esac
3333

3434
ARCHIVE="cortex-auth-${VERSION}-${TARGET}"
@@ -38,20 +38,20 @@ sudo mv "${ARCHIVE}/cortex-server" "${ARCHIVE}/cortex-cli" /usr/local/bin/
3838
rm -rf "${ARCHIVE}" "${ARCHIVE}.tar.gz"
3939
```
4040

41-
### Manual download
42-
43-
| Platform | Archive |
44-
|----------|---------|
45-
| macOS Apple Silicon | `cortex-auth-v0.1.1-aarch64-apple-darwin.tar.gz` |
46-
| macOS Intel | `cortex-auth-v0.1.1-x86_64-apple-darwin.tar.gz` |
41+
| Platform | Pre-built binary |
42+
|----------|-----------------|
43+
| macOS Apple Silicon (M1/M2/M3) | `cortex-auth-v0.1.1-aarch64-apple-darwin.tar.gz` |
44+
| macOS Intel | — build from source |
4745
| Linux x86_64 | `cortex-auth-v0.1.1-x86_64-unknown-linux-musl.tar.gz` |
4846
| Linux ARM64 | `cortex-auth-v0.1.1-aarch64-unknown-linux-musl.tar.gz` |
4947

50-
Each archive contains two binaries: `cortex-server` and `cortex-cli`. Extract and place them anywhere on your `PATH`.
51-
5248
### Build from source
5349

50+
Requires [Rust](https://rustup.rs) (stable).
51+
5452
```bash
53+
git clone https://github.com/davideuler/cortex-auth.git
54+
cd cortex-auth
5555
cargo build --release
5656
# Binaries at: target/release/cortex-server target/release/cortex-cli
5757
```

README.zh-CN.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66

77
## 安装
88

9-
### Homebrew(macOS)
9+
### Homebrew(macOS Apple Silicon
1010

1111
```bash
1212
brew tap davideuler/cortex-auth
1313
brew install cortex-auth
1414
```
1515

16-
### 直接下载
16+
> **注意:** Homebrew tap 仅提供 **Apple Silicon(M1/M2/M3)** 的预编译二进制文件。
17+
> macOS Intel 用户请参考[从源码编译](#从源码编译)
1718
18-
[GitHub Releases](https://github.com/davideuler/cortex-auth/releases) 页面下载预编译的二进制文件。
19+
### 预编译二进制(Linux / macOS Apple Silicon)
1920

20-
### 一键安装(Linux / macOS)
21+
[GitHub Releases](https://github.com/davideuler/cortex-auth/releases) 页面下载。
2122

2223
```bash
2324
VERSION=v0.1.1
2425

2526
# 自动识别平台
2627
case "$(uname -s)-$(uname -m)" in
2728
Darwin-arm64) TARGET=aarch64-apple-darwin ;;
28-
Darwin-x86_64) TARGET=x86_64-apple-darwin ;;
2929
Linux-x86_64) TARGET=x86_64-unknown-linux-musl ;;
3030
Linux-aarch64) TARGET=aarch64-unknown-linux-musl ;;
31-
*) echo "不支持的平台"; exit 1 ;;
31+
*) echo "该平台暂无预编译包,请参考下方从源码编译"; exit 1 ;;
3232
esac
3333

3434
ARCHIVE="cortex-auth-${VERSION}-${TARGET}"
@@ -38,20 +38,20 @@ sudo mv "${ARCHIVE}/cortex-server" "${ARCHIVE}/cortex-cli" /usr/local/bin/
3838
rm -rf "${ARCHIVE}" "${ARCHIVE}.tar.gz"
3939
```
4040

41-
### 手动下载
42-
43-
| 平台 | 安装包 |
41+
| 平台 | 预编译包 |
4442
|------|--------|
45-
| macOS Apple Silicon | `cortex-auth-v0.1.1-aarch64-apple-darwin.tar.gz` |
46-
| macOS Intel | `cortex-auth-v0.1.1-x86_64-apple-darwin.tar.gz` |
43+
| macOS Apple Silicon(M1/M2/M3) | `cortex-auth-v0.1.1-aarch64-apple-darwin.tar.gz` |
44+
| macOS Intel | — 请从源码编译 |
4745
| Linux x86_64 | `cortex-auth-v0.1.1-x86_64-unknown-linux-musl.tar.gz` |
4846
| Linux ARM64 | `cortex-auth-v0.1.1-aarch64-unknown-linux-musl.tar.gz` |
4947

50-
每个安装包包含两个二进制文件:`cortex-server``cortex-cli`。解压后将它们放到 `PATH` 中的任意目录即可。
51-
5248
### 从源码编译
5349

50+
需要安装 [Rust](https://rustup.rs)(stable 版本)。
51+
5452
```bash
53+
git clone https://github.com/davideuler/cortex-auth.git
54+
cd cortex-auth
5555
cargo build --release
5656
# 产物路径:target/release/cortex-server target/release/cortex-cli
5757
```

homebrew-tap/Formula/cortex-auth.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class CortexAuth < Formula
1010
sha256 "PLACEHOLDER_AARCH64_APPLE_DARWIN_SHA256"
1111
end
1212
on_intel do
13-
url "https://github.com/davideuler/cortex-auth/releases/download/v#{version}/cortex-auth-v#{version}-x86_64-apple-darwin.tar.gz"
14-
sha256 "PLACEHOLDER_X86_64_APPLE_DARWIN_SHA256"
13+
raise "Pre-built binaries are only available for Apple Silicon (arm64). " \
14+
"Please build from source: https://github.com/davideuler/cortex-auth"
1515
end
1616
end
1717

@@ -21,7 +21,6 @@ def install
2121
end
2222

2323
test do
24-
# cortex-server requires env vars to start; just verify the binary exists and exits cleanly
2524
assert_predicate bin/"cortex-server", :exist?
2625
assert_predicate bin/"cortex-cli", :exist?
2726
system bin/"cortex-cli", "gen-token", "--help"

0 commit comments

Comments
 (0)