Skip to content

scripts: add curl|sh installer for the daemon CLI#17

Merged
mrjeeves merged 1 commit into
mainfrom
claude/zealous-ptolemy-GOvvM
May 28, 2026
Merged

scripts: add curl|sh installer for the daemon CLI#17
mrjeeves merged 1 commit into
mainfrom
claude/zealous-ptolemy-GOvvM

Conversation

@mrjeeves
Copy link
Copy Markdown
Owner

Summary

  • The release artefacts are bare tarballs — extracting them dropped myownmesh in CWD, not on PATH, so the "pre-built daemon" path left users without a working CLI on first install.
  • Adds scripts/install.sh (POSIX) and scripts/install.ps1 that detect platform → fetch the matching release asset → verify the SHA-256 sidecar → install to /usr/local/bin (or ~/.local/bin / %LOCALAPPDATA%\Programs\MyOwnMesh as fallback) → append the prefix to PATH if it isn't there yet.
  • Falls back to cargo build --release --bin myownmesh from a shallow clone if the release lookup fails or --from-source is passed.
  • Lifts the install snippet to a top-level ## Install section in the README and replaces the five hardcoded platform-suffix examples with the one-liner. Renumbers the "Get started" subsections.

Mirrors the MyOwnLLM installer pattern (scripts/install.sh / install.ps1) so the muscle-memory carries over for users who already run both apps. Simpler than MyOwnLLM's — no Tauri runtime deps, no onnxruntime sideload.

Test plan

  • sh -n scripts/install.sh — POSIX syntax check (passes locally under /bin/sh).
  • MYOWNMESH_PREFIX=/tmp/x sh scripts/install.sh --dry-run — dry-run resolves prefix, looks up the release, logs the actions it would take without writing.
  • On a fresh Linux box: curl -fsSL https://raw.githubusercontent.com/mrjeeves/MyOwnMesh/main/scripts/install.sh | shmyownmesh serve works in a new shell.
  • On Windows: irm …/install.ps1 | iex → new terminal → myownmesh serve works.
  • ./scripts/install.sh --from-source from inside a fresh checkout uses the local tree (no clone) and installs the built binary.

Generated by Claude Code

The release artefacts are bare tarballs — extracting them dropped
`myownmesh` in CWD, not on PATH, so the "preb-built daemon" path
left users without a working CLI. Add scripts/install.sh and
scripts/install.ps1 that detect the platform, fetch the matching
release asset, verify the SHA-256 sidecar, install to
/usr/local/bin (or ~/.local/bin / %LOCALAPPDATA%\Programs\MyOwnMesh
as fallback), and append the prefix to PATH if it isn't there yet.
Falls back to `cargo build --release --bin myownmesh` from a
shallow clone if the release lookup fails.

Lift the install snippet to its own top-level section in the
README and replace the five hardcoded platform-suffix examples
with the one-liner.
@mrjeeves mrjeeves merged commit 7d7d18e into main May 28, 2026
6 checks passed
@mrjeeves mrjeeves deleted the claude/zealous-ptolemy-GOvvM branch May 28, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants