From 0104216d1725ec4689def9b66dd1a0b20138044a Mon Sep 17 00:00:00 2001 From: starptech Date: Wed, 3 Jun 2026 16:27:51 +0200 Subject: [PATCH] chore: Remove local install script --- script/install-local | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 script/install-local diff --git a/script/install-local b/script/install-local deleted file mode 100755 index e2305cb216..0000000000 --- a/script/install-local +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -ROOT=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd) -PACKAGE_DIR="$ROOT/packages/opencode" -INSTALLED=${OPENCODE_INSTALL_PATH:-$(command -v opencode || true)} - -if [[ -z "$INSTALLED" ]]; then - echo "opencode is not installed or is not on PATH" >&2 - echo "Set OPENCODE_INSTALL_PATH to the executable you want to replace." >&2 - exit 1 -fi - -INSTALLED=$(realpath "$INSTALLED") -TARGET=$(bun --eval 'process.stdout.write(`opencode-${process.platform}-${process.arch}`)') -BINARY="$PACKAGE_DIR/dist/$TARGET/bin/opencode" - -bun run --cwd "$PACKAGE_DIR" build --single "$@" - -if [[ ! -x "$BINARY" ]]; then - echo "Expected build output does not exist: $BINARY" >&2 - exit 1 -fi - -if [[ ! -e "$INSTALLED.backup" ]]; then - cp -p "$INSTALLED" "$INSTALLED.backup" - echo "Backed up $INSTALLED to $INSTALLED.backup" -fi - -install -m 755 "$BINARY" "$INSTALLED" - -echo "Installed local build at $INSTALLED" -"$INSTALLED" --version