feat: add --local flag to install.sh for developer builds#8
Open
io41 wants to merge 1 commit intoJasonDocton:mainfrom
Open
feat: add --local flag to install.sh for developer builds#8io41 wants to merge 1 commit intoJasonDocton:mainfrom
io41 wants to merge 1 commit intoJasonDocton:mainfrom
Conversation
bcadf3c to
8b18245
Compare
Adds `--local` mode to install.sh that builds from local source instead of downloading from GitHub. In local mode: requires Rust + Bun, builds native modules from source via napi-rs, uses rsync to sync packages, skips dependency auto-install and interactive prompts, disables auto-update. Usage: ./install.sh --local Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8b18245 to
69505cf
Compare
Author
|
@JasonDocton I wanted to make it easier to contribute, by making it easier to build & install from local changes. Seemed easiest to just add an optional Is this something you're interested in? |
Owner
|
@io41 You're an MVP! This is a great idea! Reviewing shortly- just getting back in town. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
--localflag toinstall.shso developers can install from a local checkout instead of downloading from GitHub.Usage:
./install.sh --local(run from repo root)What changes
The script already had two paths: git clone and zip fallback. This adds a third: local source.
In
--localmode the script:build_native_from_sourcehelper)~/.lucid/with rsync (preserves.nodebinaries, skipsnode_modules)cmake is a soft dependency — if missing, perception (video processing) is skipped with a warning.
Structure of the diff
Most of the +390/-167 is wrapping existing sections in
if LOCAL_MODE / elseblocks. The only net-new logic is:--localflag parsing + repo root validation (~20 lines)build_native_from_source()helper (~80 lines)pkillof old server (~3 lines)Test plan
./install.sh --localfrom repo root — builds and installs successfully./install.sh --localfrom non-repo dir — fails with clear error./install.sh(no flag) — unchanged behavior, no regressions🤖 Generated with Claude Code