From c63a373eb7deb74ff6e4c256e59454a4e88f8823 Mon Sep 17 00:00:00 2001 From: Jay Ehsaniara Date: Mon, 6 Apr 2026 13:06:40 -0700 Subject: [PATCH] enable windows build --- .github/workflows/release.yml | 7 +---- .goreleaser-windows.yaml | 2 +- README.md | 57 ++++++++++++++++++++++++++++++----- 3 files changed, 52 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bf4949..7693828 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,7 +84,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release-windows: - runs-on: ubuntu-latest + runs-on: windows-latest needs: build-frontend steps: - uses: actions/checkout@v4 @@ -100,11 +100,6 @@ jobs: name: frontend-dist path: internal/ui/frontend/dist/ - - name: Install cross-compilation tools - run: | - sudo apt-get update - sudo apt-get install -y gcc-mingw-w64 - - uses: goreleaser/goreleaser-action@v6 with: version: "~> v2" diff --git a/.goreleaser-windows.yaml b/.goreleaser-windows.yaml index 45afd64..1f3ae8f 100644 --- a/.goreleaser-windows.yaml +++ b/.goreleaser-windows.yaml @@ -10,9 +10,9 @@ builds: - amd64 env: - CGO_ENABLED=1 - - CC=x86_64-w64-mingw32-gcc flags: - -trimpath + - -tags=production ldflags: - -s -w -X main.version={{.Version}} diff --git a/README.md b/README.md index d9966d7..2c6e1a1 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ brew tap ehsaniara/tap brew install egressor ``` -**From source:** +**From source (macOS):** ```bash git clone https://github.com/ehsaniara/egressor.git cd egressor @@ -48,6 +48,23 @@ cd internal/ui/frontend && npm install && npm run build && cd ../../.. CGO_LDFLAGS="-framework UniformTypeIdentifiers" go build -tags production -o egressor ./cmd/egressor ``` +**From source (Windows, requires Go 1.24+ and Node.js 22+):** + +```powershell +git clone https://github.com/ehsaniara/egressor.git +cd egressor +cd internal\ui\frontend; npm install; npm run build; cd ..\..\.. +go build -tags production -o egressor.exe ./cmd/egressor +``` + +**From source (Linux, headless):** + +```bash +git clone https://github.com/ehsaniara/egressor.git +cd egressor +go build -o egressor ./cmd/egressor +``` + ### Setup On first run, Egressor auto-generates a CA certificate and prints trust instructions: @@ -57,19 +74,44 @@ On first run, Egressor auto-generates a CA certificate and prints trust instruct ``` Trust the CA (required for TLS interception): + +**macOS:** ```bash sudo security add-trusted-cert -d -r trustRoot \ -k /Library/Keychains/System.keychain ~/.egressor/ca.pem ``` +**Windows (PowerShell as Administrator):** + +```powershell +Import-Certificate -FilePath "$env:USERPROFILE\.egressor\ca.pem" ` + -CertStoreLocation Cert:\LocalMachine\Root +``` + +**Linux:** + +```bash +sudo cp ~/.egressor/ca.pem /usr/local/share/ca-certificates/egressor.crt +sudo update-ca-certificates +``` + ### Configure your tools -For Node.js-based tools (Claude Code, Kiro, Cursor): +Set the proxy and CA certificate for your LLM tools: + +**macOS / Linux:** ```bash export NODE_EXTRA_CA_CERTS=~/.egressor/ca.pem export HTTPS_PROXY=http://127.0.0.1:8080 ``` +**Windows (PowerShell):** + +```powershell +$env:NODE_EXTRA_CA_CERTS = "$env:USERPROFILE\.egressor\ca.pem" +$env:HTTPS_PROXY = "http://127.0.0.1:8080" +``` + Then launch your tool — all HTTPS traffic flows through Egressor. --- @@ -313,11 +355,12 @@ git push origin v0.1.0 This builds binaries for: -| OS | Arch | Mode | -|---|---|---| -| macOS | amd64, arm64 | Desktop UI | -| Linux | amd64, arm64 | Headless | -| Windows | amd64, arm64 | Headless | +| OS | Arch | Mode | +|---------|--------------|------------| +| macOS | amd64, arm64 | Desktop UI | +| Windows | amd64 | Desktop UI | +| Windows | arm64 | Headless | +| Linux | amd64, arm64 | Headless | Binaries are published to [GitHub Releases](https://github.com/ehsaniara/egressor/releases) and the Homebrew tap.