Skip to content

Commit 0042bb5

Browse files
authored
enable windows build
1 parent 7402e08 commit 0042bb5

3 files changed

Lines changed: 52 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8585

8686
release-windows:
87-
runs-on: ubuntu-latest
87+
runs-on: windows-latest
8888
needs: build-frontend
8989
steps:
9090
- uses: actions/checkout@v4
@@ -100,11 +100,6 @@ jobs:
100100
name: frontend-dist
101101
path: internal/ui/frontend/dist/
102102

103-
- name: Install cross-compilation tools
104-
run: |
105-
sudo apt-get update
106-
sudo apt-get install -y gcc-mingw-w64
107-
108103
- uses: goreleaser/goreleaser-action@v6
109104
with:
110105
version: "~> v2"

.goreleaser-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ builds:
1010
- amd64
1111
env:
1212
- CGO_ENABLED=1
13-
- CC=x86_64-w64-mingw32-gcc
1413
flags:
1514
- -trimpath
15+
- -tags=production
1616
ldflags:
1717
- -s -w -X main.version={{.Version}}
1818

README.md

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,31 @@ brew tap ehsaniara/tap
4040
brew install egressor
4141
```
4242

43-
**From source:**
43+
**From source (macOS):**
4444
```bash
4545
git clone https://github.com/ehsaniara/egressor.git
4646
cd egressor
4747
cd internal/ui/frontend && npm install && npm run build && cd ../../..
4848
CGO_LDFLAGS="-framework UniformTypeIdentifiers" go build -tags production -o egressor ./cmd/egressor
4949
```
5050

51+
**From source (Windows, requires Go 1.24+ and Node.js 22+):**
52+
53+
```powershell
54+
git clone https://github.com/ehsaniara/egressor.git
55+
cd egressor
56+
cd internal\ui\frontend; npm install; npm run build; cd ..\..\..
57+
go build -tags production -o egressor.exe ./cmd/egressor
58+
```
59+
60+
**From source (Linux, headless):**
61+
62+
```bash
63+
git clone https://github.com/ehsaniara/egressor.git
64+
cd egressor
65+
go build -o egressor ./cmd/egressor
66+
```
67+
5168
### Setup
5269

5370
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
5774
```
5875

5976
Trust the CA (required for TLS interception):
77+
78+
**macOS:**
6079
```bash
6180
sudo security add-trusted-cert -d -r trustRoot \
6281
-k /Library/Keychains/System.keychain ~/.egressor/ca.pem
6382
```
6483

84+
**Windows (PowerShell as Administrator):**
85+
86+
```powershell
87+
Import-Certificate -FilePath "$env:USERPROFILE\.egressor\ca.pem" `
88+
-CertStoreLocation Cert:\LocalMachine\Root
89+
```
90+
91+
**Linux:**
92+
93+
```bash
94+
sudo cp ~/.egressor/ca.pem /usr/local/share/ca-certificates/egressor.crt
95+
sudo update-ca-certificates
96+
```
97+
6598
### Configure your tools
6699

67-
For Node.js-based tools (Claude Code, Kiro, Cursor):
100+
Set the proxy and CA certificate for your LLM tools:
101+
102+
**macOS / Linux:**
68103
```bash
69104
export NODE_EXTRA_CA_CERTS=~/.egressor/ca.pem
70105
export HTTPS_PROXY=http://127.0.0.1:8080
71106
```
72107

108+
**Windows (PowerShell):**
109+
110+
```powershell
111+
$env:NODE_EXTRA_CA_CERTS = "$env:USERPROFILE\.egressor\ca.pem"
112+
$env:HTTPS_PROXY = "http://127.0.0.1:8080"
113+
```
114+
73115
Then launch your tool — all HTTPS traffic flows through Egressor.
74116

75117
---
@@ -313,11 +355,12 @@ git push origin v0.1.0
313355

314356
This builds binaries for:
315357

316-
| OS | Arch | Mode |
317-
|---|---|---|
318-
| macOS | amd64, arm64 | Desktop UI |
319-
| Linux | amd64, arm64 | Headless |
320-
| Windows | amd64, arm64 | Headless |
358+
| OS | Arch | Mode |
359+
|---------|--------------|------------|
360+
| macOS | amd64, arm64 | Desktop UI |
361+
| Windows | amd64 | Desktop UI |
362+
| Windows | arm64 | Headless |
363+
| Linux | amd64, arm64 | Headless |
321364

322365
Binaries are published to [GitHub Releases](https://github.com/ehsaniara/egressor/releases) and the Homebrew tap.
323366

0 commit comments

Comments
 (0)