[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/githubxbox/browsercode/main/install.sh [Back]  [Original]

#!/usr/bin/env bash
#
# BrowserCode installer.
#
# Hosted at https://bcode.sh/install. One-liner:
#
#   curl -fsSL https://bcode.sh/install | bash
#   curl -fsSL https://bcode.sh/install | bash -s -- --version 0.0.3
#
# Adapted from anomalyco/opencode's installer (MIT). Differences:
#
#   - Pulls assets from `browser-use/browsercode` GitHub Releases.
#   - Installs to `$HOME/.bcode/bin/bcode`.
#   - Marks shell-rc edits with `# bcode` so `bcode uninstall` strips them
#     cleanly (matches PR #12 changes).
#   - Detects `uv` on PATH and prints a one-line install hint if missing
#     (required at runtime for `browser_execute`). Does NOT call uv's
#     installer  chained installers are bad form.
set -euo pipefail
APP=bcode

MUTED='\033[0;2m'
RED='\033[0;31m'
ORANGE='\033[38;5;214m'
NC='\033[0m'

usage() {
    cat &4; exec 4>&-" RETURN

    (
        curl --trace-ascii "$tracefile" -s -L -o "$output" "$url"
    ) &
    local curl_pid=$!

    unbuffered_sed \
        -e 'y/ACDEGHLNORTV/acdeghlnortv/' \
        -e '/^0000: content-length:/p' \
        -e '/^

Web Proxy Viewer  |  New URL  |  Original Page