Feature #65: Create installation script#67
Merged
RaghavSood merged 1 commit intomainfrom Mar 11, 2026
Merged
Conversation
Add install.sh - a comprehensive bash script that automates the entire installation process including dependency installation (Go, GitHub CLI, OpenCode), building Flock from source, creating configuration files, setting up system services (systemd/launchd), and configuring automatic daily updates via cron. The script is idempotent and supports --install-dir, --non-interactive, and --skip-auth flags. Update README with quick install instructions and the one-liner command. Fixes #65
3a289e4 to
b4e3298
Compare
Contributor
Author
|
Good point about the hardcoded paths in CLAUDE.md — that's out of scope for this TCY staking PR since it's a general worktree documentation issue. Created #68 to track it. |
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
install.sh- a comprehensive bash script that automates Flock installation with one-line setupChanges
install.sh (new file - 538 lines)
A production-ready installation script that:
Detects environment: Automatically detects OS (macOS/Linux), package manager (brew/apt/dnf/yum), and architecture (amd64/arm64)
Installs dependencies:
Builds Flock: Clones the repository and builds the binary from source
Creates configuration files:
~/.flock/flock.toml- Flock server configuration~/.flock/opencode/config.json- OpenCode server configurationSets up system services:
flock.service,opencode.service)com.flock.flock.plist,com.flock.opencode.plist)Configures auto-updates: Sets up cron job for daily updates at 3 AM
Is idempotent: Safely skips existing configurations
Flags supported:
--install-dir: Custom installation directory (default:~/.flock)--non-interactive: Run without prompts--skip-auth: Skip authentication stepsUsage:
README.md updates
Added comprehensive installation section with:
Related Issue
Closes #65