fix(install): also create the agent-browser-stealth command name
install.sh created `agent-browser` + `abs` but not `agent-browser-stealth`, so users who invoke `agent-browser-stealth` (the fork's package name) weren't getting it updated on curl-install/upgrade. Now all three names — agent-browser, agent-browser-stealth, abs — symlink to the same binary, so an upgrade refreshes whichever name you actually run.
This commit is contained in:
+7
-3
@@ -95,10 +95,14 @@ fi
|
|||||||
mkdir -p "$bindir"
|
mkdir -p "$bindir"
|
||||||
|
|
||||||
mv "$tmp/${BIN_NAME}" "$bindir/${BIN_NAME}"
|
mv "$tmp/${BIN_NAME}" "$bindir/${BIN_NAME}"
|
||||||
# convenience aliases: `abs` (short) -> agent-browser
|
# Aliases pointing at the same binary: `abs` (short) and `agent-browser-stealth`
|
||||||
ln -sf "$bindir/${BIN_NAME}" "$bindir/abs" 2>/dev/null || true
|
# (the fork's package name). All three names work, and an upgrade refreshes
|
||||||
|
# whichever name you actually run.
|
||||||
|
for alias_name in abs agent-browser-stealth; do
|
||||||
|
ln -sf "$bindir/${BIN_NAME}" "$bindir/${alias_name}" 2>/dev/null || true
|
||||||
|
done
|
||||||
|
|
||||||
info "installed ${BIN_NAME} -> ${bindir}/${BIN_NAME}"
|
info "installed -> ${bindir}/ (agent-browser, agent-browser-stealth, abs)"
|
||||||
"$bindir/${BIN_NAME}" --version 2>/dev/null || true
|
"$bindir/${BIN_NAME}" --version 2>/dev/null || true
|
||||||
|
|
||||||
case ":$PATH:" in
|
case ":$PATH:" in
|
||||||
|
|||||||
Reference in New Issue
Block a user