windows
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# Docker Compose for building agent-browser
|
||||
# Usage: docker compose -f docker/docker-compose.yml run build-linux
|
||||
# docker compose -f docker/docker-compose.yml run build-windows
|
||||
#
|
||||
# Note: macOS builds should be done natively on macOS for compatibility.
|
||||
# Windows uses Node.js fallback (Unix sockets not supported).
|
||||
|
||||
services:
|
||||
# Build for Linux platforms only (macOS should be built natively)
|
||||
# Build for Linux platforms
|
||||
build-linux:
|
||||
build:
|
||||
context: ..
|
||||
@@ -35,6 +35,27 @@ services:
|
||||
ls -la /output/agent-browser-linux-*
|
||||
'
|
||||
|
||||
# Build for Windows
|
||||
build-windows:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.build
|
||||
volumes:
|
||||
- ../cli:/build
|
||||
- ../bin:/output
|
||||
command: |
|
||||
-c '
|
||||
set -e
|
||||
echo "Building for Windows x64..."
|
||||
|
||||
cargo build --release --target x86_64-pc-windows-gnu
|
||||
cp /build/target/x86_64-pc-windows-gnu/release/agent-browser.exe /output/agent-browser-win32-x64.exe
|
||||
|
||||
echo ""
|
||||
echo "✓ Windows build completed!"
|
||||
ls -la /output/agent-browser-win32-*
|
||||
'
|
||||
|
||||
# Build for a single target (override with TARGET env var)
|
||||
build-single:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user