mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
fix: use curl for Chrome download + capture google-chrome-stable in tarball (#2370)
- wget not available on many cloud VMs, use curl instead - Remove 2>/dev/null from dpkg/apt so install errors are visible - Capture /usr/bin/google-chrome-stable in tarball (actual .deb binary name) - Use curl in packer/agents.json tarball build too Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
24a3c7328d
commit
4004b51f6d
4 changed files with 5 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.15.25",
|
||||
"version": "0.15.26",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -323,8 +323,8 @@ async function installChromeBrowser(runner: CloudRunner): Promise<void> {
|
|||
try {
|
||||
await runner.runServer(
|
||||
"{ command -v google-chrome-stable >/dev/null 2>&1 || command -v google-chrome >/dev/null 2>&1; } && { echo 'Chrome already installed'; exit 0; }; " +
|
||||
"wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/google-chrome.deb && " +
|
||||
"sudo dpkg -i /tmp/google-chrome.deb 2>/dev/null; sudo apt-get install -f -y -qq 2>/dev/null; " +
|
||||
"curl --proto '=https' -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /tmp/google-chrome.deb && " +
|
||||
"sudo dpkg -i /tmp/google-chrome.deb; sudo apt-get install -f -y -qq; " +
|
||||
"rm -f /tmp/google-chrome.deb",
|
||||
120,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
"tier": "full",
|
||||
"install": [
|
||||
"mkdir -p ~/.npm-global/bin && npm install -g --prefix ~/.npm-global openclaw",
|
||||
"wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/google-chrome.deb && apt-get install -y -qq /tmp/google-chrome.deb && rm -f /tmp/google-chrome.deb"
|
||||
"curl --proto '=https' -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /tmp/google-chrome.deb && apt-get install -y -qq /tmp/google-chrome.deb && rm -f /tmp/google-chrome.deb"
|
||||
]
|
||||
},
|
||||
"opencode": {
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ case "${AGENT_NAME}" in
|
|||
openclaw)
|
||||
echo "/root/.npm-global/" >> "${PATHS_FILE}"
|
||||
# Google Chrome for OpenClaw's browser tool (CDP automation)
|
||||
echo "/usr/bin/google-chrome-stable" >> "${PATHS_FILE}"
|
||||
echo "/usr/bin/google-chrome" >> "${PATHS_FILE}"
|
||||
echo "/opt/google/chrome/" >> "${PATHS_FILE}"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue