agent-browser 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/agent-browser +3 -1
- package/bin/agent-browser-darwin-arm64 +0 -0
- package/bin/agent-browser-darwin-x64 +0 -0
- package/bin/agent-browser-linux-arm64 +0 -0
- package/bin/agent-browser-linux-x64 +0 -0
- package/bin/agent-browser-win32-x64.exe +0 -0
- package/bin/agent-browser.cmd +10 -2
- package/package.json +1 -1
package/bin/agent-browser
CHANGED
|
@@ -17,7 +17,9 @@ case "$ARCH" in x86_64|amd64) ARCH="x64" ;; aarch64|arm64) ARCH="arm64" ;; esac
|
|
|
17
17
|
|
|
18
18
|
BINARY="$SCRIPT_DIR/agent-browser-${OS}-${ARCH}"
|
|
19
19
|
|
|
20
|
-
if [ -f "$BINARY" ]
|
|
20
|
+
if [ -f "$BINARY" ]; then
|
|
21
|
+
# Ensure binary is executable (npm tarballs don't preserve execute bit)
|
|
22
|
+
[ -x "$BINARY" ] || chmod +x "$BINARY" 2>/dev/null
|
|
21
23
|
exec "$BINARY" "$@"
|
|
22
24
|
fi
|
|
23
25
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/agent-browser.cmd
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
@echo off
|
|
2
2
|
setlocal
|
|
3
3
|
set "SCRIPT_DIR=%~dp0"
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
set "BINARY=%SCRIPT_DIR%agent-browser-win32-x64.exe"
|
|
5
|
+
|
|
6
|
+
if exist "%BINARY%" (
|
|
7
|
+
"%BINARY%" %*
|
|
8
|
+
exit /b %errorlevel%
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
echo Error: No binary found for win32-x64 >&2
|
|
12
|
+
echo Run 'npm run build:native' to build for your platform >&2
|
|
13
|
+
exit /b 1
|