windows
This commit is contained in:
@@ -10,12 +10,13 @@ RUN apt-get update && apt-get install -y \
|
||||
mingw-w64 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Add Rust targets (Unix only - Windows uses Node.js fallback due to Unix socket dependency)
|
||||
# Add Rust targets for all platforms
|
||||
RUN rustup target add \
|
||||
x86_64-unknown-linux-gnu \
|
||||
aarch64-unknown-linux-gnu \
|
||||
x86_64-apple-darwin \
|
||||
aarch64-apple-darwin
|
||||
aarch64-apple-darwin \
|
||||
x86_64-pc-windows-gnu
|
||||
|
||||
# Install cargo-zigbuild for easier cross-compilation (especially macOS)
|
||||
RUN curl -sSL https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz | tar -xJ -C /opt \
|
||||
|
||||
@@ -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