Skip to content

Commit e0f05ae

Browse files
committed
Add install script at atomic.bond/install
Shell script detects OS/arch, downloads the right binary from GitHub releases, installs to /usr/local/bin. Supports curl and wget. Restore atomic.bond/install URL in website hero and install section.
1 parent e70e1be commit e0f05ae

File tree

2 files changed

+50
-7
lines changed

2 files changed

+50
-7
lines changed

www/index.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,8 @@ <h1 class="hero-heading">Domain identity for AI agents.</h1>
9292
Your agent gets an Ed25519 keypair bound to its domain, a public identity document at <code class="ic">/.well-known/agent.json</code>, an encrypted vault, and a deposit box for receiving secrets. One binary, ~4MB, runs on the same box as the agent.
9393
</p>
9494

95-
<pre class="code-block"><code><span class="code-comment"># Download from GitHub releases</span>
96-
curl -fsSL https://github.com/plotondev/atomic/releases/latest/download/atomic-$(uname -m)-$(uname -s | tr A-Z a-z) -o atomic
97-
chmod +x atomic
98-
./atomic init --domain fin.acme.com</code></pre>
95+
<pre class="code-block"><code>curl -fsSL atomic.bond/install | sh
96+
atomic init --domain fin.acme.com</code></pre>
9997

10098
<div class="cta-row">
10199
<a href="https://github.com/plotondev/atomic/releases" class="cta-btn">Download</a>
@@ -250,9 +248,8 @@ <h2 class="section-heading" id="security">Security</h2>
250248

251249
<h2 class="section-heading" id="install">Install</h2>
252250

253-
<pre class="code-block"><code><span class="code-comment"># Download the latest release</span>
254-
curl -fsSL https://github.com/plotondev/atomic/releases/latest/download/atomic-$(uname -m)-$(uname -s | tr A-Z a-z) -o atomic
255-
chmod +x atomic && sudo mv atomic /usr/local/bin/
251+
<pre class="code-block"><code><span class="code-comment"># One-line install</span>
252+
curl -fsSL atomic.bond/install | sh
256253

257254
<span class="code-comment"># Or build from source</span>
258255
git clone https://github.com/plotondev/atomic.git

www/install

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/sh
2+
set -e
3+
4+
REPO="plotondev/atomic"
5+
INSTALL_DIR="/usr/local/bin"
6+
7+
# Detect OS
8+
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
9+
case "$OS" in
10+
linux) OS="linux" ;;
11+
darwin) OS="macos" ;;
12+
*) echo "Unsupported OS: $OS" >&2; exit 1 ;;
13+
esac
14+
15+
# Detect arch
16+
ARCH=$(uname -m)
17+
case "$ARCH" in
18+
x86_64|amd64) ARCH="x86_64" ;;
19+
aarch64|arm64) ARCH="aarch64" ;;
20+
*) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;;
21+
esac
22+
23+
BINARY="atomic-${ARCH}-${OS}"
24+
URL="https://github.com/${REPO}/releases/latest/download/${BINARY}"
25+
26+
echo "Downloading atomic for ${OS}/${ARCH}..."
27+
if command -v curl >/dev/null 2>&1; then
28+
curl -fsSL "$URL" -o /tmp/atomic
29+
elif command -v wget >/dev/null 2>&1; then
30+
wget -q "$URL" -O /tmp/atomic
31+
else
32+
echo "Error: curl or wget required" >&2
33+
exit 1
34+
fi
35+
36+
chmod +x /tmp/atomic
37+
38+
if [ -w "$INSTALL_DIR" ]; then
39+
mv /tmp/atomic "$INSTALL_DIR/atomic"
40+
else
41+
echo "Installing to ${INSTALL_DIR} (requires sudo)..."
42+
sudo mv /tmp/atomic "$INSTALL_DIR/atomic"
43+
fi
44+
45+
echo "atomic installed to ${INSTALL_DIR}/atomic"
46+
atomic --version

0 commit comments

Comments
 (0)