Getting set for release

This commit is contained in:
Dave
2026-03-13 12:52:56 +00:00
parent 27d9d3a3a9
commit 3035dc2a7d
10 changed files with 134 additions and 26 deletions

View File

@@ -24,7 +24,7 @@ cargo run
cargo build --release
# Run the server (serves embedded frontend/dist/)
./target/release/story-kit-server
./target/release/story-kit
```
## Cross-Platform Distribution
@@ -37,10 +37,10 @@ Story Kit ships as a **single self-contained binary** with the React frontend em
```bash
# Native build no extra tools required beyond Rust + pnpm
make build-macos
# Output: target/release/story-kit-server
# Output: target/release/story-kit
# Verify only system frameworks are linked (Security.framework, libSystem.B.dylib, etc.)
otool -L target/release/story-kit-server
otool -L target/release/story-kit
```
### Linux (static x86_64, zero dynamic deps)
@@ -60,13 +60,13 @@ cargo install cross
```bash
make build-linux
# Output: target/x86_64-unknown-linux-musl/release/story-kit-server
# Output: target/x86_64-unknown-linux-musl/release/story-kit
# Verify the binary is statically linked
file target/x86_64-unknown-linux-musl/release/story-kit-server
file target/x86_64-unknown-linux-musl/release/story-kit
# Expected: ELF 64-bit LSB executable, x86-64, statically linked
ldd target/x86_64-unknown-linux-musl/release/story-kit-server
ldd target/x86_64-unknown-linux-musl/release/story-kit
# Expected: not a dynamic executable
```
@@ -74,7 +74,7 @@ ldd target/x86_64-unknown-linux-musl/release/story-kit-server
```bash
# No Rust, Node, glibc, or any other library needed just copy and run
./story-kit-server
./story-kit
```
## Testing