feat(scripts): bootstrap.sh — full macOS/Linux port#35
Open
abdout wants to merge 2 commits into
Open
Conversation
…ap.ps1 16-step idempotent flow with brew, launchd, osascript. Real cross- platform parity for the headline cold-start command. Now both pastes do the same architectural thing: curl -fsSL https://kun.databayt.org/install.sh | bash # macOS/Linux irm https://kun.databayt.org/install | iex # Windows bootstrap.sh: - Same 16 steps as bootstrap.ps1, same exit codes - brew (with Homebrew auto-install) instead of winget - npm install -g @anthropic-ai/claude-code for the CLI - brew install --cask claude / webstorm for the GUI apps - launchd via maintain.sh --install (Linux warns and skips) - Marketplace plugin pre-drop using the same JetBrains API endpoints verified for Drop-Plugin.ps1 - sudo cache warm-up at step 1 (analog of UAC self-elevation) - macOS vs Linux detection — package manager fallback chain (brew → apt-get → dnf) next.config.ts redirects updated: /install.sh → bootstrap.sh (was onboarding-mac.sh) /finish.sh → bootstrap.sh finish.sh now forwards to bootstrap.sh (with onboarding-mac.sh as a back-compat fallback if bootstrap.sh isn't installed yet). bash -n syntax-clean. True macOS/Linux validation needs the respective machines. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
git clone returns exit code on failure, not a PowerShell exception, so the original try/catch never triggered the HTTPS fallback when SSH host key verification failed. Switched to explicit $LASTEXITCODE check. Surfaced on a real machine during the v2 onboarding readiness sweep: the user's install.ps1 attempted git@github.com clone, the host key wasn't in known_hosts, the clone failed silently with no fallback, and the user was left without ~/codebase. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 tasks
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
Real cross-platform parity for the headline cold-start command.
bootstrap.shmirrorsbootstrap.ps1's 16-step idempotent flow, with brew + launchd + osascript replacing winget + schtasks + BurntToast.Canonical pastes — both now do the same thing
Both run the same 16-step flow, hit the same exit codes, set up the same shell aliases, arm the same scheduled task, end with the same
doctorverification.What's in the PR
~/.claude/scripts/bootstrap.sh(440 lines) — full portnext.config.ts—/install.shand/finish.shnow point atbootstrap.sh(wasonboarding-mac.sh)finish.sh— forwards tobootstrap.shwithonboarding-mac.shas legacy fallbackTest plan
bash -n bootstrap.shpassescurl -fsSL kun.databayt.org/install.sh | bashend-to-endbootstrap.sh --dry-runwalks all 16 steps without side effectsDependencies
Stacks on
feat/engine-integration(PR #34). Merge order:🤖 Generated with Claude Code